Beispiel #1
0
 def update(self):
     # install pixel shader for adjusting texture contrast
     gl.glUseProgram(self.contrast_program)
     gl.glUniform1i(self.texture_loc, 0)
     gl.glUniform1f(self.contrast_loc, self.contrast)
Beispiel #2
0
 def draw(self):
     super(ShaderTextureStimulus, self).draw()
     # uninstall shader program
     gl.glUseProgram(0)