Search Unity

Unity native VR support and Image Effect problem

Discussion in 'AR/VR (XR) Discussion' started by Marcin-Nowak, May 23, 2016.

  1. Marcin-Nowak

    Marcin-Nowak

    Joined:
    Mar 7, 2015
    Posts:
    6
    Hi,

    I want to use an image effect, that needs exact camera transform and projection matrix to work properly (it is Temporal Reprojection AA). Is there any way to get this data, while performing image effect script?
    My current implementation gets transform from VR camera, which is in the middle between eye cameras, which obviously can't work.

    I know I can access local eye position via VR namespace, but that doesn't help, because I don't know which eye is currently rendered at the time.

    I have no clue, how to solve this isses, so I will be very glad for any suggestions.

    All the best!,
    Marcin