设置缺省环境光照亮度
This commit is contained in:
@@ -134,6 +134,8 @@ void drawMainUI()
|
||||
uniformBuffer.updateStandardAttribute(g_scene);
|
||||
|
||||
//find Light node
|
||||
uniformBuffer.setAttribute("ambient_light:color", davinci::fVector3(0.1f, 0.1f, 0.1f));
|
||||
|
||||
davinci::SceneNodeConstPtr lightNode = g_scene.getNodeWithComponent<davinci::LightComponent>();
|
||||
if (lightNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user