unity3d 求双面带透明通道的Shader。
答案:1 悬赏:80 手机版
解决时间 2021-02-05 04:49
- 提问者网友:椧運幽默
- 2021-02-04 14:45
unity3d 求双面带透明通道的Shader。
最佳答案
- 五星知识达人网友:你可爱的野爹
- 2021-02-04 15:47
Shader "Custom/DoubleFace" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "" {}
}
SubShader {
Pass {
Cull Off
Blend SrcAlpha OneMinusSrcAlpha
Alphatest Greater 0
SetTexture [_MainTex] {
constantColor [_Color]
combine texture * constant }
}
}
}
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "" {}
}
SubShader {
Pass {
Cull Off
Blend SrcAlpha OneMinusSrcAlpha
Alphatest Greater 0
SetTexture [_MainTex] {
constantColor [_Color]
combine texture * constant }
}
}
}
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯