HardSurfacePro Hidden Back Transparent.shader 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //Hard Surface Shader Package, Written for the Unity engine by Bruno Rime: http://www.behance.net/brunorime brunorime@gmail.com
  2. Shader "Hidden/Hardsurface Pro Back Transparent"{
  3. SubShader { // Shader Model 3
  4. // Back Faces pass
  5. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  6. zwrite off Cull Front Ztest Lequal
  7. Blend SrcAlpha OneMinusSrcAlpha
  8. colormask RGBA
  9. CGPROGRAM
  10. #define HardsurfaceBackface
  11. #define ShaderModel3
  12. #pragma target 3.0
  13. #include "HardSurfaceLighting.cginc"
  14. #include "HardSurface.cginc"
  15. #pragma surface surf BlinnPhongHardsurfaceBack
  16. ENDCG
  17. }
  18. SubShader { // Shader Model 2
  19. // Back Faces pass
  20. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  21. zwrite off Cull Front Ztest Lequal
  22. Blend SrcAlpha OneMinusSrcAlpha
  23. colormask RGBA
  24. CGPROGRAM
  25. #define HardsurfaceBackface
  26. #include "HardSurfaceLighting.cginc"
  27. #include "HardSurface.cginc"
  28. #pragma surface surf BlinnPhongHardsurfaceBackSM2
  29. ENDCG
  30. }
  31. Fallback "Diffuse"
  32. }