Bug where widgets did not get their ambient light now fixed.
This commit is contained in:
@@ -23,6 +23,16 @@ void EditorRenderSystem::Update(double dt)
|
||||
scene.Camera = m_EditorCamera;
|
||||
scene.Viewport = Rectangle(1920, 1080);
|
||||
|
||||
auto cSceneLight = m_World->GetComponents("SceneLight");
|
||||
if (cSceneLight != nullptr) {
|
||||
//m_RenderFrame->Gamma = (double)(*cSceneLight->begin())["Gamma"];
|
||||
//m_RenderFrame->Exposure = (double)(*cSceneLight->begin())["Exposure"];
|
||||
//scene.AmbientColor = (glm::vec4)(*cSceneLight->begin())["AmbientColor"];
|
||||
m_RenderFrame->Gamma = 2.2;
|
||||
m_RenderFrame->Exposure = 1.0;
|
||||
scene.AmbientColor = glm::vec4(0.6, 0.5, 0.5, 1.0);
|
||||
}
|
||||
|
||||
auto models = m_World->GetComponents("Model");
|
||||
if (models != nullptr) {
|
||||
for (auto& cModel : *models) {
|
||||
|
||||
Reference in New Issue
Block a user