HardSurfacePro Hidden Front Opaque Bump.shader 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 Opaque Bump"{
  3. SubShader { // Shader model 3
  4. // Front Faces pass
  5. //Tags {"Queue"="Geometry" "RenderType"="Opaque" "IgnoreProjector"="False" }
  6. zwrite on Cull Back Ztest Lequal
  7. Blend off
  8. colormask RGBA
  9. CGPROGRAM
  10. #define HardsurfaceOpaque
  11. #define HardsurfaceDiffuse
  12. #define HardsurfaceNormal
  13. #define ShaderModel3
  14. #pragma target 3.0
  15. #include "HardSurfaceLighting.cginc"
  16. #include "HardSurface.cginc"
  17. #pragma surface surf BlinnPhongHardsurfaceFront
  18. ENDCG
  19. }
  20. SubShader { // Shader Model 2
  21. // Front Faces pass
  22. //Tags {"Queue"="Geometry" "RenderType"="Opaque" "IgnoreProjector"="False" }
  23. zwrite on Cull Back Ztest Lequal
  24. Blend off
  25. colormask RGBA
  26. CGPROGRAM
  27. #define HardsurfaceOpaque
  28. #define HardsurfaceDiffuse
  29. #define HardsurfaceNormal
  30. #include "HardSurfaceLighting.cginc"
  31. #include "HardSurface.cginc"
  32. #pragma surface surf BlinnPhongHardsurfaceFrontSM2
  33. ENDCG
  34. }
  35. Fallback "Diffuse"
  36. }