Search Unity

Geometry blocking flare?

Discussion in 'Shaders' started by Jesper Johansen, Aug 30, 2007.

  1. Jesper Johansen

    Jesper Johansen

    Joined:
    May 23, 2007
    Posts:
    51
    Hi

    I have an indoor scene. Two windows in walls. I want to position a sun flare outside to be visible through the windows, but as sson I position the light outside the windows, the flare disappear. The light still affect the indoor interiour though.

    Is this the transparent shader on the windows causing this? Is this a culling problem? Or something third?
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Flare visibility is determined from the colliders, not from visual information. Thus if your windows have colliders, flare will be blocked.
     
  3. Jesper Johansen

    Jesper Johansen

    Joined:
    May 23, 2007
    Posts:
    51
    Oh... it may not be the window at all... I tried removing it, and same result. Is the colliders? I turned meshrenderer off on them. How can I make the flare disregard the colliders?
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Put the object on the "TransparentFX" layer.

    --Eric
     
  5. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Also applies to triggers(Colliders set to trigger) i believe
    AC