Przeglądaj źródła

untested update from gl

David Rose 24 lat temu
rodzic
commit
06ba6f9042
1 zmienionych plików z 1 dodań i 7 usunięć
  1. 1 7
      panda/src/crgsg/crGraphicsStateGuardian.cxx

+ 1 - 7
panda/src/crgsg/crGraphicsStateGuardian.cxx

@@ -2516,14 +2516,8 @@ apply_fog(qpFog *fog) {
   call_glFogMode(get_fog_mode_type((Fog::Mode)fmode));
 
   if (fmode == qpFog::M_linear) {
-    // Linear fog may be world-relative or camera-relative.  The fog
-    // object knows how to decode its parameters into camera-relative
-    // properties.
     float onset, opaque;
-    fog->compute_linear_range(onset, opaque, 
-                              qpNodePath(),
-                              // _current_camera,
-                              _coordinate_system);
+    fog->get_linear_range(onset, opaque);
     call_glFogStart(onset);
     call_glFogEnd(opaque);