Search Unity

Weird Cutout problem

Discussion in 'Shaders' started by cod, Oct 16, 2013.

  1. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    $parallaxBUG.png

    As u can see from the picture, I have a quite annoying problem with the clip function. I am using my shader in which I write to o.Alpha the depth value, then I use the clip function, but it seems that it does not work properly : It correctly discards the pixel below the 0 value, but it doesn't render the appropriate shadow as in the built-in Cutout shader

    Please help me :D
     
  2. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    help!
     
  3. cod

    cod

    Joined:
    Nov 26, 2011
    Posts:
    267
    PS I noticed that it only happens if i multiply my alpha value with the normalized view direction