Webcam in a Cube

I made this little application in Processing where a webcam’s video goes on all 6 faces on a cube. What’s more is that you can drag the cube in any direction you want to rotate it and see other faces on the cube!

I don’t know why the video isn’t how it comes out of the [...]