shader uniform array initialization
Posted: Tue Aug 24, 2010 7:20 am
In my shader,uniform array like this was used:
i found irrlicht can not initialize this array,just only vector waveData[0] could be set using:setVertexShaderConstant() function.
so in my opinion,i must declare like:
hope for array supporting!
if there are some good methods to set array constants out of my view?
Thanks
Code: Select all
uniform vec4 WaveData[5];
so in my opinion,i must declare like:
Code: Select all
uniform matrix4 waveData1;
uniform vector4 waveData2;
if there are some good methods to set array constants out of my view?
Thanks