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.

Transparent objects block GI completely

Discussion in 'Global Illumination' started by Warrior1424, Jun 28, 2015.

  1. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    984
    Is there a way to keep certain objects from completely blocking GI?
    I have some windows that I'd like GI to get through.
    I could set them to not be static, but then they don't get light baked onto them, and they look very dark.
    The windows are using the Standard(spec setup) shader in the Transparent mode (not cutout).

    You know how dynamic objects can receive shadows but not cast them?
    Is there a way to do that, but with baked GI and lighting?
     
  2. Korno

    Korno

    Joined:
    Oct 26, 2014
    Posts:
    518
    If you could just make the window glass model dynamic that way the window frame could still be static and receive the baked lighting but the glass wouldnt block it?
     
  3. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    984
    The thing is, the window has a large frame (that is the wall), but also has smaller frames on the texture itself.
     
  4. SpiriTx

    SpiriTx

    Graphics QA Unity Technologies

    Joined:
    Apr 12, 2012
    Posts:
    252
    You can create separate lightmap parameter for the window, and mark it as transparent there

    Screen Shot 2015-06-29 at 13.17.11.png
     
    OmarVector likes this.
  5. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    984
    Thank you!
     
  6. Korno

    Korno

    Joined:
    Oct 26, 2014
    Posts:
    518
    Is this new in 5.1 ? Because this the mostest awesomest thing ever!