HardSurfacePro Hidden Front Transparent.shader 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 Front Transparent"{
  3. SubShader { // Shader Model 3
  4. // Front Faces pass
  5. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  6. zwrite off Cull Back Ztest Lequal
  7. Blend SrcAlpha OneMinusSrcAlpha
  8. colormask RGBA
  9. CGPROGRAM
  10. #define ShaderModel3
  11. #pragma target 3.0
  12. #include "HardSurfaceLighting.cginc"
  13. #include "HardSurface.cginc"
  14. #pragma surface surf BlinnPhongHardsurfaceFront
  15. ENDCG
  16. }
  17. SubShader { // Shader Model 2
  18. // Front Faces pass
  19. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  20. zwrite off Cull Back Ztest Lequal
  21. Blend SrcAlpha OneMinusSrcAlpha
  22. colormask RGBA
  23. CGPROGRAM
  24. #include "HardSurfaceLighting.cginc"
  25. #include "HardSurface.cginc"
  26. #pragma surface surf BlinnPhongHardsurfaceFrontSM2
  27. ENDCG
  28. }
  29. Fallback "Diffuse"
  30. }