From 6c6b0903644d8d05581d5bee9a6fd6f17701ef04 Mon Sep 17 00:00:00 2001 From: GolfOcean334 <130740013+GolfOcean334@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:12:44 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20des=20lumi=C3=A8res=20afin=20de?= =?UTF-8?q?=20leurs=20rajout=C3=A9=20une=20position=20pr=C3=A9d=C3=A9finie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enginecustom/applicationclass.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/enginecustom/applicationclass.cpp b/enginecustom/applicationclass.cpp index 24b81c7..2a06aea 100644 --- a/enginecustom/applicationclass.cpp +++ b/enginecustom/applicationclass.cpp @@ -260,22 +260,26 @@ 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); // Manually set the color and position of each light. m_Lights[1].SetDiffuseColor(1.0f, 0.0f, 0.0f, 1.0f); // Red - m_Lights[1].SetDirection(0.0f, 0.0f, -1.0f); + 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[2].SetDiffuseColor(0.0f, 1.0f, 0.0f, 1.0f); // Green - m_Lights[2].SetDirection(0.0f, 0.0f, -1.0f); + 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[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); // Create and initialize the normal map shader object.