Hi,
I am trying to rotate 3d model by using following code but it is not working.
ShaderUtils::rotatePoseMatrix(60, 1, 0, 0);
I am writing it before
ShaderUtils::translatePoseMatrix(0.0f, 0.0f, kObjectScale, &modelViewMatrix.data[0]);
ShaderUtils::scalePoseMatrix(kObjectScale, kObjectScale, kObjectScale, &modelViewMatrix.data[0]);
What is the issue?
Thanks
Ayaz Alavi
Hi ayazalavi,
I don't know if this is just a C+P error in this post but you're missing the all important 5th parameter?
To confirm, the angle is in degrees, as you have used.
ShaderUtils::rotatePoseMatrix(60, 1, 0, 0, &modelViewMatrix.data[0]);