Drastically impove background rendering
Render glowmap to lower-resolution framebuffer
This commit is contained in:
@@ -31,6 +31,7 @@ class BackgroundViewController: UIViewController {
|
|||||||
view.backgroundColor = UIColor.blackColor()
|
view.backgroundColor = UIColor.blackColor()
|
||||||
view.scene = _scene
|
view.scene = _scene
|
||||||
view.allowsCameraControl = false
|
view.allowsCameraControl = false
|
||||||
|
/* view.showsStatistics = true */
|
||||||
|
|
||||||
_sceneView = view
|
_sceneView = view
|
||||||
self.view = view
|
self.view = view
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<key>u_blurmapSampler</key>
|
<key>u_blurmapSampler</key>
|
||||||
<string>bothblurs_color</string>
|
<string>bothblurs_color</string>
|
||||||
<key>u_colorSampler</key>
|
<key>u_colorSampler</key>
|
||||||
<string>firstPass_color</string>
|
<string>COLOR</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>outputs</key>
|
<key>outputs</key>
|
||||||
<dict>
|
<dict>
|
||||||
@@ -94,16 +94,22 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>firstPass_color</key>
|
<key>firstPass_color</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>size</key>
|
||||||
|
<string>512x512</string>
|
||||||
<key>type</key>
|
<key>type</key>
|
||||||
<string>color</string>
|
<string>color</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>hblur_color</key>
|
<key>hblur_color</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>size</key>
|
||||||
|
<string>512x512</string>
|
||||||
<key>type</key>
|
<key>type</key>
|
||||||
<string>color</string>
|
<string>color</string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>bothblurs_color</key>
|
<key>bothblurs_color</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>size</key>
|
||||||
|
<string>512x512</string>
|
||||||
<key>type</key>
|
<key>type</key>
|
||||||
<string>color</string>
|
<string>color</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
Reference in New Issue
Block a user