better check for color-scale-via-lighting
This commit is contained in:
parent
53eb393661
commit
5eae2ddb1a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue