I'm creating a cube in WebGL made of mirros that have to reflect the object inside of it.
At the moment I'm stuck because I don't understand the correct logic to implement to achieve the result. I tried put a camera in every face of the cube in order to have a cubemap to apply. The problems come when I try to rotate the cube: I'm not able to make the cameras follow the rotation.
What's the correct logic to implement?
These images could give the idea of what I'm trying to do: