HardSurfacePro Hidden Front Opaque.shader 1001 B

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