Search Unity

Transparency and Shadows

Discussion in 'Shaders' started by plolley, Dec 19, 2014.

  1. plolley

    plolley

    Joined:
    Dec 19, 2014
    Posts:
    7
    Hi,

    I understand that it's not possible to combine object transparency and shadows. However, for my game I don't care about transparent shadows. I just want to fade out an object to reveal what's underneath. Would it be possible to trick Unity into thinking it's rendering an opaque object for shadowing purposes and render a transparent object in the main view?

    Thanks,
    Peter
     
  2. grahnzz

    grahnzz

    Joined:
    May 7, 2013
    Posts:
    46
  3. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,071
    Unity 5 works perfectly fine in this respect with the standard shader (if that's any help)
     
  4. plolley

    plolley

    Joined:
    Dec 19, 2014
    Posts:
    7
    Thanks for the help! I was able to figure something out with ShaderForge that works pretty well.