From 05f12d15f9ae0e1b92afc20bab1de6e4f4b9a51d Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Wed, 10 Apr 2024 09:26:11 +0200 Subject: [PATCH] Patch Update - light pos --- enginecustom/applicationclass.cpp | 8 ++++---- enginecustom/imgui.ini | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/enginecustom/applicationclass.cpp b/enginecustom/applicationclass.cpp index f606dfa..cb466a9 100644 --- a/enginecustom/applicationclass.cpp +++ b/enginecustom/applicationclass.cpp @@ -225,7 +225,7 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd) m_Lights[0]->SetDirection(0.0f, 0.0f, -1.0f); m_Lights[0]->SetSpecularColor(1.0f, 1.0f, 1.0f, 1.0f); m_Lights[0]->SetSpecularPower(16.0f); - m_Lights[0]->SetPosition(0.0f, 0.0f, 6.0f); + m_Lights[0]->SetPosition(10.0f, 7.0f, -5.0f); // Manually set the color and position of each light. m_Lights[1] = new LightClass; @@ -233,21 +233,21 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd) m_Lights[1]->SetDirection(0.0f, 0.0f, 1.0f); m_Lights[1]->SetSpecularColor(1.0f, 0.0f, 0.0f, 1.0f); m_Lights[1]->SetSpecularPower(16.0f); - m_Lights[1]->SetPosition(0.0f, 0.0f, 6.0f); + m_Lights[1]->SetPosition(10.0f, 7.0f, -5.0f); m_Lights[2] = new LightClass; m_Lights[2]->SetDiffuseColor(0.0f, 1.0f, 0.0f, 1.0f); // Green m_Lights[2]->SetDirection(0.0f, 0.0f, 1.0f); m_Lights[2]->SetSpecularColor(0.0f, 1.0f, 0.0f, 1.0f); m_Lights[2]->SetSpecularPower(16.0f); - m_Lights[2]->SetPosition(0.0f, 0.0f, 6.0f); + m_Lights[2]->SetPosition(10.0f, 7.0f, -5.0f); m_Lights[3] = new LightClass; m_Lights[3]->SetDiffuseColor(0.0f, 0.0f, 1.0f, 1.0f); // Blue m_Lights[3]->SetDirection(0.0f, 0.0f, 1.0f); m_Lights[3]->SetSpecularColor(0.0f, 0.0f, 1.0f, 1.0f); m_Lights[3]->SetSpecularPower(16.0f); - m_Lights[3]->SetPosition(0.0f, 0.0f, 6.0f); + m_Lights[3]->SetPosition(10.0f, 7.0f, -5.0f); // Create and initialize the normal map shader object. diff --git a/enginecustom/imgui.ini b/enginecustom/imgui.ini index 9e8787c..71a8db3 100644 --- a/enginecustom/imgui.ini +++ b/enginecustom/imgui.ini @@ -12,9 +12,8 @@ Size=492,353 Collapsed=1 [Window][Terrain] -Pos=1123,109 +Pos=816,75 Size=418,94 -Collapsed=1 [Window][Light] Pos=58,418