GLShader.findUniformByName

int findUniformByName(string name)

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

Parameters

nameuniform name

Returns

The index of the uniform, or -1