Diffuse Lighting

This commit is contained in:
Harpie94 2024-03-26 11:23:18 +01:00
parent da18ae6547
commit a160af0f64
2 changed files with 4 additions and 4 deletions

View File

@ -33,14 +33,14 @@ bool LightShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
bool result;
// Set the filename of the vertex shader.
error = wcscpy_s(vsFilename, 128, L"../Engine/light.vs");
error = wcscpy_s(vsFilename, 128, L"./Light.vs");
if (error != 0)
{
return false;
}
// Set the filename of the pixel shader.
error = wcscpy_s(psFilename, 128, L"../Engine/light.ps");
error = wcscpy_s(psFilename, 128, L"./Light.ps");
if (error != 0)
{
return false;

View File

@ -88,8 +88,8 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
// Create and initialize the light object.
m_Light = new LightClass;
m_Light->SetDiffuseColor(1.0f, 1.0f, 1.0f, 1.0f);
m_Light->SetDirection(0.0f, 0.0f, 1.0f);
m_Light->SetDiffuseColor(1.0f, 0.0f, 0.0f, 1.0f);
m_Light->SetDirection(0.0f, 1.0f, 0.0f);
return true;
}