Diffuse Lighting
This commit is contained in:
parent
da18ae6547
commit
a160af0f64
@ -33,14 +33,14 @@ bool LightShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
|
|||||||
bool result;
|
bool result;
|
||||||
|
|
||||||
// Set the filename of the vertex shader.
|
// 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)
|
if (error != 0)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the filename of the pixel shader.
|
// 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)
|
if (error != 0)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -88,8 +88,8 @@ bool ApplicationClass::Initialize(int screenWidth, int screenHeight, HWND hwnd)
|
|||||||
// Create and initialize the light object.
|
// Create and initialize the light object.
|
||||||
m_Light = new LightClass;
|
m_Light = new LightClass;
|
||||||
|
|
||||||
m_Light->SetDiffuseColor(1.0f, 1.0f, 1.0f, 1.0f);
|
m_Light->SetDiffuseColor(1.0f, 0.0f, 0.0f, 1.0f);
|
||||||
m_Light->SetDirection(0.0f, 0.0f, 1.0f);
|
m_Light->SetDirection(0.0f, 1.0f, 0.0f);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user