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