- Home /
 
               Question by 
               theteadrinker · Sep 17, 2018 at 08:23 AM · 
                shadershader programmingshaderlab  
              
 
              How to turn off shader pass using shader property?
Between CGPROGRAM and ENDCG I can use makroifs to disable code based on a property
     #pragma shader_feature _USE_HIGHLIGHT_GRID_ON
     #if _USE_HIGHLIGHT_GRID_ON
     #endif
property is defined like this:
     [Toggle] _USE_HIGHLIGHT_GRID("Grid Enabled", Float) = 0    
However, is there a way to enable/disable a shader pass using a shader property?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                