53 lines
1019 B
Plaintext
53 lines
1019 B
Plaintext
|
|
Shader "Hidden/Hardsurface Pro Front Cut Out Opaque Diffuse"{
|
|
|
|
SubShader { // Shader Model 3
|
|
|
|
// Front Faces pass
|
|
|
|
//Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
|
|
zwrite on Cull Back Ztest Lequal
|
|
Blend off
|
|
colormask RGBA
|
|
|
|
CGPROGRAM
|
|
|
|
#define HardsurfaceDiffuse
|
|
#define ShaderModel3
|
|
#define HardsurfaceCutOut
|
|
|
|
#pragma target 3.0
|
|
#include "HardSurfaceLighting.cginc"
|
|
#include "HardSurface.cginc"
|
|
#pragma surface surf BlinnPhongHardsurfaceFront alphatest:_Cutoff fullforwardshadows
|
|
|
|
|
|
ENDCG
|
|
|
|
}
|
|
|
|
SubShader { // Shader Model 2
|
|
|
|
// Front Faces pass
|
|
|
|
//Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
|
|
zwrite on Cull Back Ztest Lequal
|
|
Blend off
|
|
colormask RGBA
|
|
|
|
CGPROGRAM
|
|
|
|
#define HardsurfaceDiffuse
|
|
#define HardsurfaceCutOut
|
|
|
|
|
|
#include "HardSurfaceLighting.cginc"
|
|
#include "HardSurface.cginc"
|
|
#pragma surface surf BlinnPhongHardsurfaceFrontSM2 alphatest:_Cutoff
|
|
|
|
ENDCG
|
|
|
|
}
|
|
Fallback "Diffuse"
|
|
}
|