I am following a tutorial on YouTube which combines 3 matrices: projectionMatrix * viewMatrix * transformationMatrix
. These, allow a 3D cube to render along with a camera that controls the scene. My question is, how do these matrices/matrix show the sides of the below cube when the cube is off-centered by the camera movement?
camera panned to the left
Which matrices are responsible for showing the left side of the cube as the camera moves on the X axis? Is it because the further away the vertices are (on the z axis), the less it is affected by movement and so, the front vertices move revealing those behind; like below?
I understand that the projection matrix might have to do with the side of the cube being smaller on the vertices further away. Also, I do not think the cube is rotating since the front quad is not distorted. My theory is that the transformation matrix is making the vertices further away lag behind and thus, being revealed.