HardSurfacePro Hidden Front Transparent Specular.shader 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Shader "Hidden/Hardsurface Pro Front Transparent Specular"{
  2. SubShader { // Shader Model 3
  3. // Front Faces pass
  4. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  5. zwrite off Cull Back Ztest Lequal
  6. Blend SrcAlpha OneMinusSrcAlpha
  7. colormask RGBA
  8. CGPROGRAM
  9. #define HardsurfaceDiffuse
  10. #define HardsurfaceNormal
  11. #define HardsurfaceSpecular
  12. #define ShaderModel3
  13. #pragma target 3.0
  14. #include "HardSurfaceLighting.cginc"
  15. #include "HardSurface.cginc"
  16. #pragma surface surf BlinnPhongHardsurfaceFront
  17. ENDCG
  18. }
  19. SubShader { // Shader Model 2
  20. // Front Faces pass
  21. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  22. zwrite off Cull Back Ztest Lequal
  23. Blend SrcAlpha OneMinusSrcAlpha
  24. colormask RGBA
  25. CGPROGRAM
  26. #define HardsurfaceDiffuse
  27. #define HardsurfaceNormal
  28. #define HardsurfaceSpecular
  29. #include "HardSurfaceLighting.cginc"
  30. #include "HardSurface.cginc"
  31. #pragma surface surf BlinnPhongHardsurfaceFrontSM2
  32. ENDCG
  33. }
  34. Fallback "Diffuse"
  35. }