GLShader.findUniformByName

Looks for a uniform by the name @name, and returns the index of the uniform, or -1 if it was not found.

class GLShader
int
findUniformByName
(
string name
)

Parameters

name string

uniform name

Return Value

Type: int

The index of the uniform, or -1

Meta