Patch Update - light pos

This commit is contained in:
CatChow0 2024-04-10 09:26:11 +02:00
parent ac513df371
commit 05f12d15f9
2 changed files with 5 additions and 6 deletions

View File

@ -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.

View File

@ -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