Preview_NandNode.shader 429 B

12345678910111213141516171819202122232425262728
  1. Shader "Hidden/AllNode"
  2. {
  3. Properties
  4. {
  5. _A ("_A", 2D) = "white" {}
  6. _B ("_B", 2D) = "white" {}
  7. }
  8. SubShader
  9. {
  10. Pass
  11. {
  12. CGPROGRAM
  13. #include "UnityCG.cginc"
  14. #include "Preview.cginc"
  15. #pragma vertex vert_img
  16. #pragma fragment frag
  17. sampler2D _A;
  18. sampler2D _B;
  19. float4 frag(v2f_img i) : SV_Target
  20. {
  21. return ( !tex2D(_A, i.uv) && !tex2D(_B, i.uv) ) ? ( 1 ).xxxx : ( 0 ).xxxx;
  22. }
  23. ENDCG
  24. }
  25. }
  26. }