12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //Hard Surface Shader Package, Written for the Unity engine by Bruno Rime: http://www.behance.net/brunorime brunorime@gmail.com
- Shader "Hidden/Hardsurface Pro Back Transparent"{
- SubShader { // Shader Model 3
- // Back Faces pass
-
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
- zwrite off Cull Front Ztest Lequal
- Blend SrcAlpha OneMinusSrcAlpha
- colormask RGBA
-
- CGPROGRAM
-
-
- #define HardsurfaceBackface
- #define ShaderModel3
- #pragma target 3.0
- #include "HardSurfaceLighting.cginc"
- #include "HardSurface.cginc"
- #pragma surface surf BlinnPhongHardsurfaceBack
-
- ENDCG
-
- }
- SubShader { // Shader Model 2
- // Back Faces pass
-
- //Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
- zwrite off Cull Front Ztest Lequal
- Blend SrcAlpha OneMinusSrcAlpha
- colormask RGBA
-
- CGPROGRAM
-
-
- #define HardsurfaceBackface
- #include "HardSurfaceLighting.cginc"
- #include "HardSurface.cginc"
- #pragma surface surf BlinnPhongHardsurfaceBackSM2
-
- ENDCG
-
- }
- Fallback "Diffuse"
- }
|