Fixed AdvancedEffectBase example to use uniforms

This commit is contained in:
Alexander Taylor 2014-04-20 19:22:24 +01:00
parent 4e5ed024e2
commit 582541444a
1 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,7 @@ class TouchEffect(AdvancedEffectBase):
self.uniforms = {'touch': [0.0, 0.0]}
def on_touch(self, *args, **kwargs):
if self.fbo:
self.fbo['touch'] = [float(i) for i in self.touch]
self.uniforms['touch'] = [float(i) for i in self.touch]
class TouchWidget(EffectWidget):