Skip to main content
New Participant
September 27, 2015

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!
    This topic has been closed for replies.

    2 replies

    Inspiring
    September 28, 2015
    Yeah, I think setting a camera to use a render texture and placing that on a quad will do what you need.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    arharveyAuthor
    New Participant
    September 29, 2015
    Cool - I'll give that a go...