Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
arharvey's avatar
arharvey
Honored Guest
10 years ago

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!

2 Replies

Replies have been turned off for this discussion
  • Yeah, I think setting a camera to use a render texture and placing that on a quad will do what you need.