Răsfoiți Sursa

oops, didn't want to check in the debug statements

Asad M. Zaman 21 ani în urmă
părinte
comite
c7793581fd

+ 1 - 1
panda/src/pgraph/polylightEffect.cxx

@@ -222,7 +222,7 @@ do_poly_light(const CullTraverserData *data, const TransformState *node_transfor
     r = Rcollect / num_lights;
     g = Gcollect / num_lights;
     b = Bcollect / num_lights;
-    pgraph_cat.info() << "r=" << r << "; g=" << g << "; b=" << b << endl;
+    pgraph_cat.debug() << "r=" << r << "; g=" << g << "; b=" << b << endl;
   }
 
   return ColorScaleAttrib::make(LVecBase4f(r, g, b, 1.0));

+ 2 - 2
panda/src/pgraph/polylightNode.cxx

@@ -80,11 +80,11 @@ Colorf PolylightNode::flicker() const {
     //srand((int)ClockObject::get_global_clock()->get_frame_time());
     variation = (rand()%100);  // a value between 0-99
     variation /= 100.0;
-    pgraph_cat.info() << "Random Variation: " << variation << endl;
+    pgraph_cat.debug() << "Random Variation: " << variation << endl;
   } else if (_flicker_type == FSIN) {
     double now = ClockObject::get_global_clock()->get_frame_time();
     variation = sinf(now*_sin_freq);
-    pgraph_cat.info() << "Variation: " << variation << endl;
+    pgraph_cat.debug() << "Variation: " << variation << endl;
     // can't use negative variation, so make it positive
     if (variation < 0.0)
       variation *= -1.0;