设置缺省环境光照亮度

This commit is contained in:
2025-12-06 16:14:36 +08:00
parent b0964dfe72
commit c9f617f1cc
+2
View File
@@ -134,6 +134,8 @@ void drawMainUI()
uniformBuffer.updateStandardAttribute(g_scene); uniformBuffer.updateStandardAttribute(g_scene);
//find Light node //find Light node
uniformBuffer.setAttribute("ambient_light:color", davinci::fVector3(0.1f, 0.1f, 0.1f));
davinci::SceneNodeConstPtr lightNode = g_scene.getNodeWithComponent<davinci::LightComponent>(); davinci::SceneNodeConstPtr lightNode = g_scene.getNodeWithComponent<davinci::LightComponent>();
if (lightNode) if (lightNode)
{ {