File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ def __init__(self):
16
16
17
17
def draw (self , time , frametime , target ):
18
18
self .texture1 .use (location = 0 )
19
- self .program . uniform ( "tex" , 0 )
19
+ self .program [ "tex" ]. value = 0
20
20
self .texture2 .use (location = 1 )
21
- self .program . uniform ( "tex2" , 1 )
21
+ self .program [ "tex2" ]. value = 1
22
22
23
- self .program . uniform ( "scroll" , time * 1.5 )
24
- self .program . uniform ( "intensity" , 1.0 + ((math .sin (time / 2 )) / 2 ) )
25
- self .program . uniform ( "zangle" , time )
26
- self .program . uniform ( "speedlayer_alpha" , (math .sin (time ) + 1.0 ) / 2 )
27
- self .program . uniform ( "accelerate" , 0.5 )
23
+ self .program [ "scroll" ]. value = time * 1.5
24
+ self .program [ "intensity" ]. value = 1.0 + ((math .sin (time / 2 )) / 2 )
25
+ self .program [ "zangle" ]. value = time
26
+ self .program [ "speedlayer_alpha" ]. value = (math .sin (time ) + 1.0 ) / 2
27
+ self .program [ "accelerate" ]. value = 0.5
28
28
29
29
self .vao .draw (self .program )
You can’t perform that action at this time.
0 commit comments