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

This commit is contained in:
Asad M. Zaman 2004-09-09 19:28:00 +00:00
parent 459cd34f31
commit c7793581fd
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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;