Search Unity

shadows

Discussion in 'Scripting' started by 2dgamemania, Mar 26, 2015.

  1. 2dgamemania

    2dgamemania

    Joined:
    Apr 30, 2014
    Posts:
    153
    Hi,

    I'm using Unity 5, I have a 3D background and the shadows kinda turn off and on as it scrolls past. It seems to be something to do with that fact that its transparent. If I use Opaque instead of transparency on the material i cannot see any issues other than the fact I want my background transparent. Does anyone have any ideas why this is?

    Thanks
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Realtime shadows and transparency don't play nicely with each other. You should try to avoid transparent and use opaque or cutout whenever possible. You don't get good shadows when you are using a transparent material in general.
     
    2dgamemania likes this.
  3. 2dgamemania

    2dgamemania

    Joined:
    Apr 30, 2014
    Posts:
    153
    ok thanks dantus, i'll have a look at the cutout option