Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Sunshaft culling somehow inverted?

Discussion in 'Editor & General Support' started by TemplarGFX, Sep 11, 2014.

  1. TemplarGFX

    TemplarGFX

    Joined:
    Aug 21, 2014
    Posts:
    103
    Hi Everyone, Im new to unity, so forgive me if this is obvious.

    I am trying to get Sunshafts to work inside a scene where the sky is a giant sphere with several cloud spheres inside it, all above my terrain with the directional light outside of the spheres.

    With Sunshafts on "Rely of Z Buffer" the sphere blocks all shafts. Turning off this option enabled the shafts, but instead of the game objects blocking the shafts, the shafts only appear through the objects (as if the objects where stamped onto the sphere, and then cut out of it.



    In this image, when I turn of the sky sphere and turn on rely on Z buffer. the sunshafts come through that gap between the objects, instead of coming through the objects around the gap.

    --edit-- Here is an image with the intensity of the shafts at an idiotic number so you can really see the issue




    I have absolutely no idea what is going on.
     
    Last edited: Sep 11, 2014