mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
oops, didn't want to check in the debug statements
This commit is contained in:
parent
459cd34f31
commit
c7793581fd
@ -222,7 +222,7 @@ do_poly_light(const CullTraverserData *data, const TransformState *node_transfor
|
|||||||
r = Rcollect / num_lights;
|
r = Rcollect / num_lights;
|
||||||
g = Gcollect / num_lights;
|
g = Gcollect / num_lights;
|
||||||
b = Bcollect / 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));
|
return ColorScaleAttrib::make(LVecBase4f(r, g, b, 1.0));
|
||||||
|
@ -80,11 +80,11 @@ Colorf PolylightNode::flicker() const {
|
|||||||
//srand((int)ClockObject::get_global_clock()->get_frame_time());
|
//srand((int)ClockObject::get_global_clock()->get_frame_time());
|
||||||
variation = (rand()%100); // a value between 0-99
|
variation = (rand()%100); // a value between 0-99
|
||||||
variation /= 100.0;
|
variation /= 100.0;
|
||||||
pgraph_cat.info() << "Random Variation: " << variation << endl;
|
pgraph_cat.debug() << "Random Variation: " << variation << endl;
|
||||||
} else if (_flicker_type == FSIN) {
|
} else if (_flicker_type == FSIN) {
|
||||||
double now = ClockObject::get_global_clock()->get_frame_time();
|
double now = ClockObject::get_global_clock()->get_frame_time();
|
||||||
variation = sinf(now*_sin_freq);
|
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
|
// can't use negative variation, so make it positive
|
||||||
if (variation < 0.0)
|
if (variation < 0.0)
|
||||||
variation *= -1.0;
|
variation *= -1.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user