view
and projection
matrices.
M
with the rotation matrix
Rs
.
To
, so that the cube is spinning offset from the center. The cube
should Ro
, will make the cube orbit as well. Add it to the correct position in the
chain of transformations.