Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request How to access color channel in Shader Graph

Discussion in 'Shader Graph' started by wrgTT, May 10, 2019.

  1. wrgTT

    wrgTT

    Joined:
    May 10, 2019
    Posts:
    2
    Hello.
    There is no idea to realize this with Shader Graph.

    Code (CSharp):
    1. Shader "Custom/cutout"
    2. {
    3.     Properties{
    4.         _Color("Color", Color) = (1,1,1,1)
    5.     }
    6.  
    7.         SubShader{
    8.             Tags {"Queue" = "Geometry-1"}
    9.  
    10.             Pass{
    11.                 Zwrite On
    12.                 ColorMask 0
    13.             }
    14.     }
    15. }
    What is the equivalent of "ColorMask 0"?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    There isn't one. This isn't supported by Shader Graph.
     
  3. wrgTT

    wrgTT

    Joined:
    May 10, 2019
    Posts:
    2
    Thanks reply and im sorry to late.

    tokita