Reusing a rendered background image for both eyes
Hi there, I'm just getting into VR development with Unity 5.2...
In the game I'm writing my world's background (i.e; the far distance) is procedural and rendered using a native C++ plugin. Since the background is far way it should appear the same for both eyes. It's rather wasteful doing the same expensive render twice so I'd like to render once and reuse the image for each eye.
Does anyone have any ideas or links that may prove useful?
From my Googling it seems I should create a camera and link it to a render texture. Question is, how do I ensure Unity renders this camera before the left and right eyes?
Many thanks!
In the game I'm writing my world's background (i.e; the far distance) is procedural and rendered using a native C++ plugin. Since the background is far way it should appear the same for both eyes. It's rather wasteful doing the same expensive render twice so I'd like to render once and reuse the image for each eye.
Does anyone have any ideas or links that may prove useful?
From my Googling it seems I should create a camera and link it to a render texture. Question is, how do I ensure Unity renders this camera before the left and right eyes?
Many thanks!
