setUniform

fun setUniform(uniformName: String, value: Any)(source)

Update the value of a uniform declared in the shader

Parameters

uniformName

The GLSL name of the uniform. This must match one of the uniforms declared in the constructor

value

The new value of the uniform.

See also