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.scene = _scene
|
||||
view.allowsCameraControl = false
|
||||
/* view.showsStatistics = true */
|
||||
|
||||
_sceneView = view
|
||||
self.view = view
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user