unity, access scene ambient

lighting面板里设置的ambient color,在shader里访问是通过UNITY_LIGHTMODEL_AMBIENT这个变量。

它定义在UnityShaderVariables.cginc里。

参考:http://docs.unity3d.com/410/Documentation/Components/SL-BuiltinStateInPrograms.html

 

posted on 2015-12-14 14:11  wantnon  阅读(290)  评论(0编辑  收藏  举报

导航