You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
725 B
Plaintext
31 lines
725 B
Plaintext
Shader "Custome/Level" {
|
|
Properties {
|
|
_MainTex ("Base (RGB)", 2D) = "white" {}
|
|
}
|
|
SubShader {
|
|
Tags { "RenderType"="Opaque" }
|
|
LOD 150
|
|
|
|
CGPROGRAM
|
|
#pragma surface surf Lambert noforwardadd
|
|
|
|
sampler2D _MainTex;
|
|
|
|
struct Input {
|
|
float2 uv_MainTex;
|
|
};
|
|
|
|
void surf (Input IN, inout SurfaceOutput o) {
|
|
fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
|
|
fixed3 col = c.rgb;
|
|
if (col.r>0.9 && col.g>0.9 && col.b>0.9){
|
|
o.Emission = col;
|
|
}
|
|
o.Albedo = col;
|
|
o.Alpha = c.a;
|
|
}
|
|
ENDCG
|
|
}
|
|
|
|
Fallback "Mobile/VertexLit"
|
|
} |