From 9cfd75fa6472e69fd66d7c5751e6c448c57121b1 Mon Sep 17 00:00:00 2001 From: Charles Magahern Date: Wed, 30 Dec 2015 12:05:52 -0800 Subject: [PATCH] Drastically impove background rendering Render glowmap to lower-resolution framebuffer --- .../Controllers/BackgroundViewController.swift | 1 + XIONControlPanel/Resources/CubletsTechnique.plist | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/XIONControlPanel/Controllers/BackgroundViewController.swift b/XIONControlPanel/Controllers/BackgroundViewController.swift index c085d40..25e3c2d 100644 --- a/XIONControlPanel/Controllers/BackgroundViewController.swift +++ b/XIONControlPanel/Controllers/BackgroundViewController.swift @@ -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 diff --git a/XIONControlPanel/Resources/CubletsTechnique.plist b/XIONControlPanel/Resources/CubletsTechnique.plist index 09bda04..8f2b4a1 100644 --- a/XIONControlPanel/Resources/CubletsTechnique.plist +++ b/XIONControlPanel/Resources/CubletsTechnique.plist @@ -81,7 +81,7 @@ u_blurmapSampler bothblurs_color u_colorSampler - firstPass_color + COLOR outputs @@ -94,16 +94,22 @@ firstPass_color + size + 512x512 type color hblur_color + size + 512x512 type color bothblurs_color + size + 512x512 type color