推 Ninja5566: 你vertex如果有送vertex color進去應該是沒問題吧 10/09 05:38
推 cjcat2266: 記得要寫alpha blending的blend mode 10/09 07:02
→ Ninja5566: 試著surface shader 輸出顏色改成alpha值, 看是不是 10/09 10:38
→ Ninja5566: 你想要的 10/09 10:38
→ planetoid: 我改變appdata_full的color rgb有作用 但第四個channel 10/09 14:31
→ planetoid: 卻沒有 不知道是不是少設定了什麼 10/09 14:33
→ planetoid: blend mode是Blend SrcAlpha OneMinusSrcAlpha 10/09 14:46
推 cjcat2266: 有沒有 "Queue" = "Transparent" ? 10/09 15:37
→ planetoid: 有耶"Queue"="Transparent""RenderType"="Transparent" 10/09 15:44
推 cjcat2266: 那就想不太到別的了,原始檔貼上來比較清楚 10/09 15:46
→ cjcat2266: 之前提到的方法是vert + frag shader 10/09 15:55
→ cjcat2266: 如果要用surf shader的確有可能要用不同方法 10/09 15:55
→ cjcat2266: 畢竟是Unity內建pipeline,有時一般作法不適用 10/09 15:56
推 cjcat2266: Sorry,不該說一般作法,該說全套very+frag作法 10/09 16:09
→ cjcat2266: 畢竟Unity建議沒必要vert或frag時,使用surf shader 10/09 16:10
→ planetoid: 72那裡lerp _Color跟_Color2再assign給v.color 10/09 16:38
→ planetoid: 但_Color1跟2的alpha channel卻沒作用@@ 10/09 16:38
→ planetoid: 反倒是需要用81那裡修改 10/09 16:39
→ planetoid: fade in/out的效果 10/09 16:43
推 chowleft: 81行把 IN.color.a 帶進去算不行嗎? 10/10 00:15
→ chowleft: 像是 o.Alpha = IN.color.a * c.a; 10/10 00:16
→ planetoid: 喔喔喔喔 大感謝chowleft大大 可以了>< 10/10 01:03
推 cjcat2266: 喔~原來如此,我以為原po的意思是in.color.a沒用 10/10 03:30