From 5eae2ddb1a5af9f4f2a3469e5bb2611fa53f1ee8 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 7 May 2005 00:54:27 +0000 Subject: [PATCH] better check for color-scale-via-lighting --- panda/src/display/standardMunger.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/display/standardMunger.cxx b/panda/src/display/standardMunger.cxx index 88debbe730..c741a33adb 100644 --- a/panda/src/display/standardMunger.cxx +++ b/panda/src/display/standardMunger.cxx @@ -72,7 +72,7 @@ StandardMunger(const GraphicsStateGuardianBase *gsg, const RenderState *state, } else if (color_scale_attrib != (ColorScaleAttrib *)NULL && color_scale_attrib->has_scale()) { _color_scale = color_scale_attrib->get_scale(); - if (!_gsg->get_color_scale_via_lighting() || _color_scale[3] != 1.0f) { + if (!_gsg->get_color_scale_via_lighting() || _color_scale[3] < 0.999f) { // We only need to apply the color scale by directly munging the // color if the GSG says it can't cheat this via lighting (for // instance, by applying an ambient light). Or, since we assume