Drastically impove background rendering

Render glowmap to lower-resolution framebuffer
This commit is contained in:
Charles Magahern
2015-12-30 12:05:52 -08:00
parent 2326808740
commit 9cfd75fa64
2 changed files with 8 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ class BackgroundViewController: UIViewController {
view.backgroundColor = UIColor.blackColor()
view.scene = _scene
view.allowsCameraControl = false
/* view.showsStatistics = true */
_sceneView = view
self.view = view

View File

@@ -81,7 +81,7 @@
<key>u_blurmapSampler</key>
<string>bothblurs_color</string>
<key>u_colorSampler</key>
<string>firstPass_color</string>
<string>COLOR</string>
</dict>
<key>outputs</key>
<dict>
@@ -94,16 +94,22 @@
<dict>
<key>firstPass_color</key>
<dict>
<key>size</key>
<string>512x512</string>
<key>type</key>
<string>color</string>
</dict>
<key>hblur_color</key>
<dict>
<key>size</key>
<string>512x512</string>
<key>type</key>
<string>color</string>
</dict>
<key>bothblurs_color</key>
<dict>
<key>size</key>
<string>512x512</string>
<key>type</key>
<string>color</string>
</dict>