Skip to content

Commit f928478

Browse files
committed
pep8
1 parent bb5734e commit f928478

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/warpspeed/effect.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ def __init__(self):
1414

1515
self.zangle = 0.0
1616

17-
1817
@effect.bind_target
1918
def draw(self, time, frametime, target):
20-
2119
self.texture1.use(location=0)
2220
self.shader.uniform("tex", 0)
2321
self.texture2.use(location=1)
@@ -26,8 +24,7 @@ def draw(self, time, frametime, target):
2624
self.shader.uniform("scroll", time * 1.5)
2725
self.shader.uniform("intensity", 1.0 + ((math.sin(time / 2)) / 2))
2826
self.shader.uniform("zangle", time)
29-
v = (math.sin(time) + 1.0) / 2
30-
self.shader.uniform("speedlayer_alpha", v);
27+
self.shader.uniform("speedlayer_alpha", (math.sin(time) + 1.0) / 2)
3128
self.shader.uniform("accelerate", 0.5)
3229

3330
self.vao.draw(self.shader)

0 commit comments

Comments
 (0)