unity3d 模型怎么双面显示
1 回答
精慕HU
TA贡献1845条经验 获得超8个赞
材质球使用双面shader,网上很多
| 12345678910111213141516171819202122232425262728293031 | 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} |
- 1 回答
- 0 关注
- 7195 浏览
添加回答
举报
0/150
提交
取消
