Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glm::mat4 myMatrix = glm::translate(glm::mat4(1.0f),trans);
- glm::mat4 Model = glm::mat4(1.f);
- glm::mat4 myScalingMatrix = glm::scale(sx, sy ,sz);
- glm::vec3 myRotationAxis( 0, 1, 0);
- glm::mat4 myRotationMatrix =glm::rotate(glm::mat4(1.0f),rot, myRotationAxis);
- Model= myScalingMatrix* myRotationMatrix*myMatrix;
- glm::mat4 MVP = Projection* View * Model;
- glm::mat4 Model = glm::mat4(1.f);
- glm::mat4 myScalingMatrix = glm::scale(sx, sy ,sz);
- glm::vec3 myRotationAxis( 0, 1, 0);
- glm::mat4 myRotationMatrix =glm::rotate(glm::mat4(1.0f),rot, myRotationAxis);
- glm::vec4 trans(x,y,z,1);
- glm::vec4 vTrans = myRotationMatrix* trans ;
- glm::mat4 myMatrix = glm::translate(glm::mat4(1.0f),vTrans.x,vTrans.y,vTrans.z);
- Model= myScalingMatrix* myRotationMatrix*myMatrix;
- glm::mat4 Model = glm::mat4(1.f);
- glm::mat4 myScalingMatrix = glm::scale(sx, sy ,sz);
- glm::vec3 myRotationAxis( 0, 1, 0);
- glm::mat4 myRotationMatrix =glm::rotate(glm::mat4(1.0f),rot, myRotationAxis);
- glm::vec4 vTrans = myRotationMatrix * trans;
- glm::mat4 myMatrix = glm::translate(glm::mat4(1.0f), vTrans.xyz);
- Model= myScalingMatrix* myRotationMatrix*myMatrix;
- glm::mat4 MVP = Projection* View * Model;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement