declare mat4

Jun 23, 2009 at 7:29am

declare mat4


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


Jun 23, 2009 at 4:12pm

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


You must be logged in to reply to this topic.