HardSurface Pro Opaque Specular.shader 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //Hard Surface Shader Package, Written for the Unity engine by Bruno Rime: http://www.behance.net/brunorime brunorime@gmail.com
  2. Shader "HardSurface/Hardsurface Pro/Opaque Specular"{
  3. Properties {
  4. _Color ("Main Color", Color) = (1,1,1,1)
  5. _SpecColor ("Specular Color", Color) = (1, 1, 1, 1)
  6. _Shininess ("Shininess", Range (0.01, 3)) = 1.5
  7. _Gloss("Gloss", Range (0.00, 1)) = .5
  8. _Reflection("Reflection", Range (0.00, 1)) = 0.5
  9. _Cube ("Reflection Cubemap", Cube) = "Black" { TexGen CubeReflect }
  10. _FrezPow("Fresnel Reflection",Range(0,1024)) = 512
  11. _FrezFalloff("Fresnal/EdgeAlpha Falloff",Range(0,10)) = 4
  12. _EdgeAlpha("Edge Alpha",Range(0,1)) = 0
  13. _Metalics("Metalics",Range(0,1)) = .5
  14. _MainTex ("Diffuse(RGB) Alpha(A)",2D) = "White" {}
  15. _BumpMap ("Normalmap", 2D) = "Bump" {}
  16. _Spec_Gloss_Reflec_Masks ("Spec(R) Gloss(G) Reflec(B)",2D) = "White" {}
  17. }
  18. SubShader {
  19. Tags {"Queue"="Geometry+200" "RenderType"="Opaque" "IgnoreProjector"="False" }
  20. UsePass "Hidden/Hardsurface Pro Front Opaque Specular/FORWARD"
  21. GrabPass {
  22. Tags {"LightMode" = "Always"}
  23. }
  24. Tags {"Queue"="Transparent" "IgnoreProjector"="False" "RenderType"="Transparent" "LightMode" = "Always"}
  25. UsePass "Hidden/Hardsurface Pro ScreenSpace Reflection/SSREFLECTIONSPECULAR"
  26. }
  27. Fallback "Diffuse"
  28. }