求教unity3D中shader显示双面的模型颜色特别亮,怎么改
1个回答
展开全部
Shader "DoubleSide/Diffuse"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader
{
Tags { "Queue" = "Transparent" }
Material
{
Diffuse [_Color]
Ambient (1,1,1,1)
}
Pass
{
Lighting On
Cull off
Blend SrcAlpha OneMinusSrcAlpha
SetTexture [_MainTex]
{
constantColor [_Color]
Combine texture * primary DOUBLE, texture * constant
}
}
}
FallBack "Diffuse", 1
}
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader
{
Tags { "Queue" = "Transparent" }
Material
{
Diffuse [_Color]
Ambient (1,1,1,1)
}
Pass
{
Lighting On
Cull off
Blend SrcAlpha OneMinusSrcAlpha
SetTexture [_MainTex]
{
constantColor [_Color]
Combine texture * primary DOUBLE, texture * constant
}
}
}
FallBack "Diffuse", 1
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询