U3D:Shader固定管线关闭雾

关闭雾: Fog {Mode Off}


示例:



Shader "Custom/Alpha Blended Fog Off" {
Properties {
_MainTex ("Particle Texture", 2D) = "white" {}
}


Category {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
Blend SrcAlpha OneMinusSrcAlpha
//Cull Off Lighting Off ZWrite Off Fog { Color (0,0,0,0) }
Cull Off Lighting Off ZWrite Off Fog {Mode Off}


BindChannels {
Bind "Color", color
Bind "Vertex", vertex
Bind "TexCoord", texcoord
}

SubShader {
Pass {
SetTexture [_MainTex] {
combine texture * primary
}
}
}
}
}

猜你喜欢

转载自blog.csdn.net/lzt20007/article/details/78872883