Forums > Jitter

declare mat4


efe
June 23, 2009 | 7:29 am

hello!

I am declaring a mat4 data type inside my vertex shader in order to have a rotation matrix:
uniform mat4 rotate;

but I am not quite sure how i can bind the parameter inside my jxs file.
Would it be something like this?:

any suggestions?

thank you

Emmanuel


June 23, 2009 | 4:12 pm

mat4 is 16 values (4×4 matrix), so if you give it 16 values as the default, should work.


Viewing 2 posts - 1 through 2 (of 2 total)