mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
turn off broken lighting
This commit is contained in:
parent
e25f7fac4e
commit
2df01768f0
@ -4264,6 +4264,7 @@ apply_fog(Fog *fog) {
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void DXGraphicsStateGuardian::apply_light( PointLight* light ) {
|
||||
#if 0
|
||||
// The light position will be relative to the current matrix, so
|
||||
// we have to know what the current matrix is. Find a better
|
||||
// solution later.
|
||||
@ -4289,6 +4290,7 @@ void DXGraphicsStateGuardian::apply_light( PointLight* light ) {
|
||||
alight.Attenuation2 = light->get_quadratic_attenuation();
|
||||
|
||||
HRESULT res = scrn.pD3DDevice->SetLight(_cur_light_id, &alight);
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -4297,6 +4299,7 @@ void DXGraphicsStateGuardian::apply_light( PointLight* light ) {
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void DXGraphicsStateGuardian::apply_light( DirectionalLight* light ) {
|
||||
#if 0
|
||||
// The light position will be relative to the current matrix, so
|
||||
// we have to know what the current matrix is. Find a better
|
||||
// solution later.
|
||||
@ -4323,6 +4326,7 @@ void DXGraphicsStateGuardian::apply_light( DirectionalLight* light ) {
|
||||
HRESULT res = scrn.pD3DDevice->SetLight(_cur_light_id, &alight);
|
||||
// scrn.pD3DDevice->LightEnable( _cur_light_id, TRUE );
|
||||
// scrn.pD3DDevice->SetRenderState( D3DRS_LIGHTING, TRUE );
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -4331,6 +4335,7 @@ void DXGraphicsStateGuardian::apply_light( DirectionalLight* light ) {
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void DXGraphicsStateGuardian::apply_light( Spotlight *light ) {
|
||||
#if 0
|
||||
// The light position will be relative to the current matrix, so
|
||||
// we have to know what the current matrix is. Find a better
|
||||
// solution later.
|
||||
@ -4361,6 +4366,7 @@ void DXGraphicsStateGuardian::apply_light( Spotlight *light ) {
|
||||
alight.Attenuation2 = (float)light->get_quadratic_attenuation();// quadratic
|
||||
|
||||
HRESULT res = scrn.pD3DDevice->SetLight(_cur_light_id, &alight);
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -4656,6 +4662,7 @@ issue_render_mode(const RenderModeTransition *attrib) {
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void DXGraphicsStateGuardian::issue_light(const LightTransition *attrib ) {
|
||||
#if 0
|
||||
nassertv(attrib->get_default_dir() != TD_on);
|
||||
|
||||
// Initialize the current ambient light total and currently enabled
|
||||
@ -4747,6 +4754,7 @@ void DXGraphicsStateGuardian::issue_light(const LightTransition *attrib ) {
|
||||
call_dxLightModelAmbient(_cur_ambient_light);
|
||||
enable_color_material(true);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user