You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.5 KiB

  1. // Made with Amplify Shader Editor
  2. // Available at the Unity Asset Store - http://u3d.as/y3X
  3. Shader "ASESampleShaders/Stencil Example/StencilMask03"
  4. {
  5. Properties
  6. {
  7. [HideInInspector] __dirty( "", Int ) = 1
  8. }
  9. SubShader
  10. {
  11. Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" }
  12. Cull Back
  13. ZWrite Off
  14. Stencil
  15. {
  16. Ref 3
  17. Comp Always
  18. Pass Replace
  19. }
  20. ColorMask 0
  21. CGPROGRAM
  22. #pragma target 3.0
  23. #pragma surface surf Standard keepalpha addshadow fullforwardshadows
  24. struct Input
  25. {
  26. fixed filler;
  27. };
  28. void surf( Input input , inout SurfaceOutputStandard output )
  29. {
  30. output.Emission = float4(1,1,0,0).rgb;
  31. output.Alpha = 1;
  32. }
  33. ENDCG
  34. }
  35. Fallback "Diffuse"
  36. CustomEditor "ASEMaterialInspector"
  37. }
  38. /*ASEBEGIN
  39. Version=3001
  40. 393;92;1091;695;486;341.5;1;True;False
  41. Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;0,0;Float;True;2;Float;ASEMaterialInspector;Standard;ASESampleShaders/Stencil Example/StencilMask03;False;False;False;False;False;False;False;False;False;False;False;False;Back;2;0;False;0;0;Opaque;0.5;True;True;0;False;Opaque;Geometry;All;True;True;True;True;True;True;True;True;True;True;True;True;True;False;False;False;False;True;3;255;255;7;3;0;0;False;0;4;10;25;True;FLOAT3;0,0,0;FLOAT3;0,0,0;FLOAT3;0,0,0;FLOAT;0.0;FLOAT;0.0;FLOAT;0.0;FLOAT3;0,0,0;FLOAT3;0,0,0;FLOAT;0.0;OBJECT;0.0;OBJECT;0.0;OBJECT;0.0;OBJECT;0.0;FLOAT3;0,0,0
  42. Node;AmplifyShaderEditor.ColorNode;1;-255,21.5;Float;Constant;_Color0;Color 0;-1;1,1,0,0
  43. WireConnection;0;2;1;0
  44. ASEEND*/
  45. //CHKSM=DFCE90ABF96A4DE2F647D556CB540037E4220C7C