HardSurfacePro Hidden Front Transparent Bump.shader 1.1 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 Front Transparent Bump"{
  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 HardsurfaceDiffuse
  11. #define HardsurfaceNormal
  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. #include "HardSurfaceLighting.cginc"
  29. #include "HardSurface.cginc"
  30. #pragma surface surf BlinnPhongHardsurfaceFrontSM2
  31. ENDCG
  32. }
  33. Fallback "Diffuse"
  34. }