add sampler states

add light
add normals
This commit is contained in:
2025-11-12 12:24:37 +01:00
parent d78aec9c1a
commit 5e31638fb8
6 changed files with 95 additions and 53 deletions
+6 -1
View File
@@ -1,7 +1,10 @@
#include "Light.h"
UINT Light::init()
UINT Light::init(D3DLIGHT9& light, INT id)
{
_light = light;
_id = id;
return 0;
}
@@ -11,6 +14,8 @@ void Light::update(FLOAT dt)
void Light::render(IDirect3DDevice9* pD3DDevice)
{
pD3DDevice->SetLight(_id, &_light);
pD3DDevice->LightEnable(_id, TRUE);
}
void Light::deInit()