瀏覽代碼

turn off broken lighting (untested)

David Rose 24 年之前
父節點
當前提交
e25f7fac4e
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      panda/src/crgsg/crGraphicsStateGuardian.cxx

+ 6 - 0
panda/src/crgsg/crGraphicsStateGuardian.cxx

@@ -2529,6 +2529,7 @@ apply_fog(qpFog *fog) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void CRGraphicsStateGuardian::apply_light( PointLight* light )
 void CRGraphicsStateGuardian::apply_light( PointLight* light )
 {
 {
+#if 0
   // The light position will be relative to the current matrix, so
   // The light position will be relative to the current matrix, so
   // we have to know what the current matrix is.  Find a better
   // we have to know what the current matrix is.  Find a better
   // solution later.
   // solution later.
@@ -2580,6 +2581,7 @@ void CRGraphicsStateGuardian::apply_light( PointLight* light )
     << "crPopMatrix()" << endl;
     << "crPopMatrix()" << endl;
 #endif
 #endif
   report_errors();
   report_errors();
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -2589,6 +2591,7 @@ void CRGraphicsStateGuardian::apply_light( PointLight* light )
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void CRGraphicsStateGuardian::apply_light( DirectionalLight* light )
 void CRGraphicsStateGuardian::apply_light( DirectionalLight* light )
 {
 {
+#if 0
   // The light position will be relative to the current matrix, so
   // The light position will be relative to the current matrix, so
   // we have to know what the current matrix is.  Find a better
   // we have to know what the current matrix is.  Find a better
   // solution later.
   // solution later.
@@ -2638,6 +2641,7 @@ void CRGraphicsStateGuardian::apply_light( DirectionalLight* light )
     << "crPopMatrix()" << endl;
     << "crPopMatrix()" << endl;
 #endif
 #endif
   report_errors();
   report_errors();
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -2647,6 +2651,7 @@ void CRGraphicsStateGuardian::apply_light( DirectionalLight* light )
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void CRGraphicsStateGuardian::apply_light( Spotlight* light )
 void CRGraphicsStateGuardian::apply_light( Spotlight* light )
 {
 {
+#if 0
   // The light position will be relative to the current matrix, so
   // The light position will be relative to the current matrix, so
   // we have to know what the current matrix is.  Find a better
   // we have to know what the current matrix is.  Find a better
   // solution later.
   // solution later.
@@ -2694,6 +2699,7 @@ void CRGraphicsStateGuardian::apply_light( Spotlight* light )
     << "crPopMatrix()" << endl;
     << "crPopMatrix()" << endl;
 #endif
 #endif
   report_errors();
   report_errors();
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////