mirror of https://github.com/kivy/kivy.git
Fixed AdvancedEffectBase example to use uniforms
This commit is contained in:
parent
4e5ed024e2
commit
582541444a
|
@ -32,8 +32,7 @@ class TouchEffect(AdvancedEffectBase):
|
||||||
self.uniforms = {'touch': [0.0, 0.0]}
|
self.uniforms = {'touch': [0.0, 0.0]}
|
||||||
|
|
||||||
def on_touch(self, *args, **kwargs):
|
def on_touch(self, *args, **kwargs):
|
||||||
if self.fbo:
|
self.uniforms['touch'] = [float(i) for i in self.touch]
|
||||||
self.fbo['touch'] = [float(i) for i in self.touch]
|
|
||||||
|
|
||||||
|
|
||||||
class TouchWidget(EffectWidget):
|
class TouchWidget(EffectWidget):
|
||||||
|
|
Loading…
Reference in New Issue