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