Beispiel #1
0
 def result(value):
     gl.uniform1i(location, 1 if value else 0)
Beispiel #2
0
 def result(value):
     gl.uniform1i(location, value)
Beispiel #3
0
 def result(value):
     gl.activeTexture(gl.TEXTURE0 + texture_unit)
     gl.bindTexture(gl.TEXTURE_2D, value)
     gl.uniform1i(location, texture_unit)