Search Unity

Shader pragma alpha:fade

Discussion in 'Shaders' started by jquery, May 12, 2019.

  1. jquery

    jquery

    Joined:
    Jul 12, 2014
    Posts:
    10
    I need to prevent rendering some part of pixels. To achieve that I use o.Alpha = 0 in surface shader.
    It works if I set #pragma surface surf Standard fullforwardshadows alpha:fade
    but in this case I see correct result only in Scene mode, when I run it in Game mode I see nothing.
    How I can fix this ?
     
    Last edited: May 13, 2019