123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- //Hard Surface Shader Package, Written for the Unity engine by Bruno Rime: http://www.behance.net/brunorime brunorime@gmail.com
- Shader "Hidden/Hardsurface Pro ScreenSpace Refraction"{
- //Shader Model 3
- SubShader {
- Pass
- {
- Name "SSREFRACTION"
-
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "LightMode" = "Always"}
- zwrite on Ztest Lequal Cull back
- Blend off
- colormask RGBA
-
- CGPROGRAM
-
- #pragma target 3.0
- #define ShaderModel3
-
- #pragma vertex vert
- #pragma fragment frag
-
- #pragma fragmentoption ARB_precision_hint_fastest
-
- #include "UnityCG.cginc"
- #include "HardSurfaceProScreenSpaceRefraction.cginc"
-
- ENDCG
-
- }
-
- Pass
- {
- Name "SSREFRACTIONBUMP"
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "LightMode" = "Always"}
- zwrite on Ztest Lequal Cull back
- Blend off
- colormask RGBA
-
- CGPROGRAM
-
- #pragma target 3.0
- #define ShaderModel3
-
- #pragma vertex vert
- #pragma fragment frag
-
- #pragma fragmentoption ARB_precision_hint_fastest
-
- #define HardsurfaceNormal
-
- #include "UnityCG.cginc"
- #include "HardSurfaceProScreenSpaceRefraction.cginc"
-
- ENDCG
-
- }
- }
-
- //Shader Model 2
- SubShader {
- Pass
- {
- Name "SSREFRACTION"
-
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "LightMode" = "Always"}
- zwrite on Ztest Lequal Cull back
- Blend off
- colormask RGBA
-
- CGPROGRAM
-
- #pragma vertex vert
- #pragma fragment frag
-
- #pragma fragmentoption ARB_precision_hint_fastest
-
- #include "UnityCG.cginc"
- #include "HardSurfaceProScreenSpaceRefraction.cginc"
-
- ENDCG
-
- }
-
- Pass
- {
- Name "SSREFRACTIONBUMP"
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "LightMode" = "Always"}
- zwrite on Ztest Lequal Cull back
- Blend off
- colormask RGBA
-
- CGPROGRAM
-
- #pragma vertex vert
- #pragma fragment frag
-
- #pragma fragmentoption ARB_precision_hint_fastest
-
- #define HardsurfaceNormal
-
- #include "UnityCG.cginc"
- #include "HardSurfaceProScreenSpaceRefraction.cginc"
-
- ENDCG
-
- }
- }
- Fallback "Diffuse"
- }
|