set Value
Sets a value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The value to set. Supported types are from the DataType enum.
The type of the uniform variable.
Sets a value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The value to set. Supported types are from the DataType enum.
The type of the uniform variable.
Sets a matrix value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The matrix value to set.
Sets a matrix value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The matrix value to set.
Sets a texture value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The texture value to set.
Sets a texture value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The texture value to set.
Sets a boolean value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The boolean value to set.
Sets a boolean value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The boolean value to set.
Sets a float value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The float value to set.
Sets a float value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The float value to set.
Sets a double value for a shader uniform variable. Performs conversion to float.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The double value to set.
Sets an integer value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The integer value to set.
Sets an integer value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The integer value to set.
Sets an unsigned integer value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The unsigned integer value to set.
Sets an unsigned integer value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The unsigned integer value to set.
Sets a 2D Vector (Pair
Parameters
The location of the uniform variable. You can get the location using getLocation.
The vec2 value to set.
Sets a 2D Vector (Pair
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The vec2 value to set.
Sets a 3D Vector (Triple
Parameters
The location of the uniform variable. You can get the location using getLocation.
The vec3 value to set.
Sets a 3D Vector (Triple
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The vec3 value to set.
Sets a 4D Vector (Quadruple
Parameters
The location of the uniform variable. You can get the location using getLocation.
The vec4 value to set.
Sets a 4D Vector (Quadruple
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The vec4 value to set.
Sets an int array value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The int array value to set. Supported sizes are 2, 3, and 4.
Sets an int array value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The int array value to set. Supported sizes are 2, 3, and 4.
Sets a float array value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The float array value to set. Supported sizes are 2, 3, and 4.
Sets a float array value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The float array value to set. Supported sizes are 2, 3, and 4.
Sets a color value for a shader uniform variable.
Parameters
The location of the uniform variable. You can get the location using getLocation.
The color value to set.
Sets a color value for a shader uniform variable by name.
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The color value to set.
Sets a value for a shader uniform variable. The type of the value is inferred at runtime. Supported types are: Boolean, Float, Double, Int, UInt, Pair
Parameters
The location of the uniform variable. You can get the location using getLocation.
The value to set.
Sets a value for a shader uniform variable by name. The type of the value is inferred at runtime. Supported types are: Boolean, Float, Double, Int, UInt, Pair
Parameters
The name of the uniform variable. You can find the uniform names in the shader code.
The value to set.