大家好

最近又回來研究 unity 3D
正好在放模型來讓模型跳舞階段
 
結果發現放了兩個模型
結果一個有影子
一個沒有
 

一時之間想不出原因
研究一下看到篇文章
 
"Unity can’t calculate shadows for GameObjects that have materials with “Unlit” type shaders. Unity can only calculate shadows for materials with shaders that support lighting."
 
 
原來預設unity 3D 如果材質的 shader 設定 Unlit (熄滅) 就不會產生影子

 
另外也要注意 project settings 那邊的 shadows 是否有打開喔

 
當然 模型本身的 mesh renderer 是否有設定開啟影子
也是要注意的喔

 
給大家參考囉~