HardSurfacePro Hidden Back Transparent Bump.shader 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Bump"{
  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 HardsurfaceDiffuse
  11. #define HardsurfaceNormal
  12. #define HardsurfaceBackface
  13. #define ShaderModel3
  14. #pragma target 3.0
  15. #include "HardSurfaceLighting.cginc"
  16. #include "HardSurface.cginc"
  17. #pragma surface surf BlinnPhongHardsurfaceBack
  18. ENDCG
  19. }
  20. SubShader { // Shader Model 2
  21. // Back Faces pass
  22. //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
  23. zwrite off Cull Front Ztest Lequal
  24. Blend SrcAlpha OneMinusSrcAlpha
  25. colormask RGBA
  26. CGPROGRAM
  27. #define HardsurfaceDiffuse
  28. #define HardsurfaceNormal
  29. #define HardsurfaceBackface
  30. #include "HardSurfaceLighting.cginc"
  31. #include "HardSurface.cginc"
  32. #pragma surface surf BlinnPhongHardsurfaceBackSM2
  33. ENDCG
  34. }
  35. Fallback "Diffuse"
  36. }