setLocation

fun setLocation(index: Int, location: Int)

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.


fun setLocation(uniformLocation: Shader.UniformLocation, location: Int)

Sets the location of a shader uniform variable.

Parameters

uniformLocation

The UniformLocation of the uniform variable.

location

The location to set.


fun setLocation(index: Int, uniformName: String)

Sets the location of a shader uniform variable by name.

Parameters

index

The index of the uniform variable.

uniformName

The name of the uniform variable. You can find the uniform names in the shader code.


fun setLocation(uniformLocation: Shader.UniformLocation, uniformName: String)

Sets the location of a shader uniform variable by name.

Parameters

uniformLocation

The UniformLocation of the uniform variable.

uniformName

The name of the uniform variable. You can find the uniform names in the shader code.