TwoSideDiffuseAlphaTest.shader 467 B

123456789101112131415161718192021222324
  1. Shader "Custom/TwoSideDiffuseAlphaTest" {
  2. Properties {
  3. _MainTex ("Base (RGB)", 2D) = "white" {}
  4. _Cutoff ("Alpha cutoff", Range (0,1)) = 0.5
  5. }
  6. SubShader {
  7. Tags { "RenderType"="Opaque" }
  8. LOD 200
  9. AlphaTest Greater [_Cutoff]
  10. Cull Off
  11. Pass {
  12. Material {
  13. Diffuse(1,1,1,1)
  14. Ambient(1,1,1,1)
  15. }
  16. Lighting On
  17. SetTexture [_MainTex] { Combine texture * Primary Double}
  18. }
  19. }
  20. }