Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private float[] getMVPMatrix(){
- float[] mMVPMatrix = new float[16];
- float[] mRotationMatrix = new float[16];
- float[] mViewMatrix = getDefaultViewMatrix();
- long time = SystemClock.uptimeMillis();
- float angle = 0.001f*((float) time);
- Matrix.setRotateM(mRotationMatrix, 0, angle, 0, 0, -1.0f);
- Matrix.multiplyMM(mViewMatrix, 0, mRotationMatrix, 0, mViewMatrix, 0);
- Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);
- return mMVPMatrix;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement