add sampler states
add light add normals
This commit is contained in:
+6
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user