Issue with getActiveUniforms()

Hi embers,

As you can see on this screen capture, the shader uniforms are iResolution, iMouse and iGlobalTime.
getActiveUniforms() returns only ciModelViewProjection(from the vertex shader, ok) and iResolution.

Do you know why?

iMouse and iGlobalTime are not used in the shader, and I assume they are optimized away. They will appear once you use them.

well, for this shader, iChannel0 is not found as an active uniform:

For the same reason as above vec4 tex is not used, so it is optimized away, including the reference to iChannel0.

oh I guess Iā€™m tired :flushed:
so getActiveUniforms() is really powerful!
thank you

Happy birthday, Bruce!

1 Like