unity3d 求一个shader 双面 + alpha 且正常受光..
unity3d求一个shader双面+alpha且物体能正常受光。。找了两天都没找到大神帮弄一个谢谢...
unity3d 求一个shader 双面 + alpha 且物体能正常受光。。
找了两天都没找到 大神帮弄一个谢谢 展开
找了两天都没找到 大神帮弄一个谢谢 展开
展开全部
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
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询