mirror of https://github.com/kivy/kivy.git
Simplified second effectwidget example
This commit is contained in:
parent
146a5fcfd0
commit
487803334f
|
@ -21,15 +21,9 @@ vec4 effect(vec4 color, sampler2D texture, vec2 tex_coords, vec2 coords)
|
|||
'''
|
||||
|
||||
|
||||
class NewEffect(EffectBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(NewEffect, self).__init__(*args, **kwargs)
|
||||
self.glsl = effect_string
|
||||
|
||||
|
||||
class DemoEffect(EffectWidget):
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.effect_reference = NewEffect()
|
||||
self.effect_reference = EffectBase(glsl=effect_string)
|
||||
super(DemoEffect, self).__init__(*args, **kwargs)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue