September 2018
Intermediate to advanced
472 pages
15h 36m
English
As with vertex attributes, a uniform variable is not considered active unless it is determined by the GLSL linker that it will be used within the shader.
The previous code is only valid for OpenGL 4.3 and later. Alternatively, you can achieve similar results using the glGetProgramiv, glGetActiveUniform, glGetUniformLocation, and glGetActiveUniformName functions.
Read now
Unlock full access