getLocation

fun getLocation(uniformName: String): Int

Gets the location of a shader uniform variable by name.

Return

The location of the uniform variable, or -1 if not found.

Parameters

uniformName

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