Glsl_get_uniform_location - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Gets the uniform location of the given variable in the given shader program and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
program | integer | index of the shader program |
name | string | name of the uniform variable |
Return Values
integer: Returns the location of the uniform variable, or -1 if it does not correspond to an active uniform variable.
Example Call
// demonstrates creating a new vertex shader
var loc;
loc = glsl_get_uniform_location(myprog, "UniformVariableName");
NOTOC