Skip to main content
Up and Coming
July 14, 2014

Unity Lens flare distance

I'm having trouble getting my Lens Flares working using the Oculus Camera scripts. I can make the lens flare show up when it's somewhat close to the camera however after I exceed a value of +100 Z the flare dissapears regardless of clipping planes sizes. Is there something I'm overlooking here ?

    2 replies

    Inspiring
    July 14, 2014
    Is it possible you have some invisible Colliders that are occluding your line of sight?
    Titans of Space PLUS for Quest is now available on DrashVR.com
    balonimanAuthor
    Up and Coming
    July 14, 2014
    I figured it out. It was due to lens distortion. As the flare moved further away it would distort upwards outside of the view. Anyone having this problem in the future should manually move away your flare from the camera and check the Y value of the flare object in a subtle fashion until the flare appears in view. Thanks for the input Drash :D