HardSurfacePro Hidden Front Opaque Specular.shader 1.2 KB

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