I have a two screen game that runs a shader on the terrain. The two windows display the terrain from the camera view of each player. The terrain shader textures and applies fog to the terrain.
The shader needs the “eye position” which will be the values from
base.camList[0/1].The input is set in a task that runs every frame.
How can I set the shader input so that it reflects the camera position for the window it is rendering to?