set Location
Sets the location of a shader uniform variable at the given index.
Parameters
index
The index of the uniform variable.
location
The location to set.
Sets the location of a shader uniform variable.
Parameters
uniform Location
The UniformLocation of the uniform variable.
location
The location to set.
Sets the location of a shader uniform variable by name.
Parameters
index
The index of the uniform variable.
uniform Name
The name of the uniform variable. You can find the uniform names in the shader code.
Sets the location of a shader uniform variable by name.
Parameters
uniform Location
The UniformLocation of the uniform variable.
uniform Name
The name of the uniform variable. You can find the uniform names in the shader code.