picogl.backend.modern.core.uniform.set_location
Functions
|
set_uniform_value |
Module Contents
- picogl.backend.modern.core.uniform.set_location.set_uniform_name_value(shader_program: int, uniform_name: str, uniform_value: float | int | pyglm.glm.vec2 | pyglm.glm.vec3 | pyglm.glm.vec4 | pyglm.glm.mat4 | numpy.ndarray)[source]
set_uniform_value
- Parameters:
shader_program – int
uniform_name – Name of the uniform variable
uniform_value – Value to set (supports float, int, vec2, vec3, vec4, mat4, or np.ndarray)
Set a uniform variable in a shader program