I needed to pass a uniform ivec2 for a GLSL shader I was playing with (found at http://www.lighthouse3d.com/opengl/ledshader/ ) Alas, I only seem to be able to pass floats, becuase f32 requirement on the 'set constant command' ...
How can I pass a brace of ints?
Also, let us say I Have uniform float man[1]. If I attempt to pass irr:f32 man[1] by telling the addconstant thing 2 floats, to this, and I attempt to access man[1], it tells me my index is out of bounds; but If I have a man[2] in the shader, the zero index thing seems to work fine - yet I still cannot access man [2]. Could anyone tell me what is causing this?
Thanks for any response.