From e25f7fac4e8e2eacdb16fc71d08342a64090be15 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 28 Mar 2002 02:42:23 +0000 Subject: [PATCH] turn off broken lighting (untested) --- panda/src/crgsg/crGraphicsStateGuardian.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/panda/src/crgsg/crGraphicsStateGuardian.cxx b/panda/src/crgsg/crGraphicsStateGuardian.cxx index 570ba3b648..b2f8d1f2b4 100644 --- a/panda/src/crgsg/crGraphicsStateGuardian.cxx +++ b/panda/src/crgsg/crGraphicsStateGuardian.cxx @@ -2529,6 +2529,7 @@ apply_fog(qpFog *fog) { //////////////////////////////////////////////////////////////////// void CRGraphicsStateGuardian::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. @@ -2580,6 +2581,7 @@ void CRGraphicsStateGuardian::apply_light( PointLight* light ) << "crPopMatrix()" << endl; #endif report_errors(); +#endif } //////////////////////////////////////////////////////////////////// @@ -2589,6 +2591,7 @@ void CRGraphicsStateGuardian::apply_light( PointLight* light ) //////////////////////////////////////////////////////////////////// void CRGraphicsStateGuardian::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. @@ -2638,6 +2641,7 @@ void CRGraphicsStateGuardian::apply_light( DirectionalLight* light ) << "crPopMatrix()" << endl; #endif report_errors(); +#endif } //////////////////////////////////////////////////////////////////// @@ -2647,6 +2651,7 @@ void CRGraphicsStateGuardian::apply_light( DirectionalLight* light ) //////////////////////////////////////////////////////////////////// void CRGraphicsStateGuardian::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. @@ -2694,6 +2699,7 @@ void CRGraphicsStateGuardian::apply_light( Spotlight* light ) << "crPopMatrix()" << endl; #endif report_errors(); +#endif } ////////////////////////////////////////////////////////////////////