unity3d 模型怎么雙面顯示
1 回答

精慕HU
TA貢獻(xiàn)1845條經(jīng)驗(yàn) 獲得超8個(gè)贊
材質(zhì)球使用雙面shader,網(wǎng)上很多
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 關(guān)注
- 7174 瀏覽
添加回答
舉報(bào)
0/150
提交
取消