mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
don't create flat-white colorattrib
This commit is contained in:
parent
775466b4bd
commit
7400cfacab
@ -432,7 +432,9 @@ make_polyset(EggBin *egg_bin, PandaNode *parent, const LMatrix4d *transform,
|
|||||||
|
|
||||||
CPT(RenderState) geom_state = render_state->_state;
|
CPT(RenderState) geom_state = render_state->_state;
|
||||||
if (has_overall_color) {
|
if (has_overall_color) {
|
||||||
geom_state = geom_state->add_attrib(ColorAttrib::make_flat(overall_color), -1);
|
if (!overall_color.almost_equal(Colorf(1.0f, 1.0f, 1.0f, 1.0f))) {
|
||||||
|
geom_state = geom_state->add_attrib(ColorAttrib::make_flat(overall_color), -1);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
geom_state = geom_state->add_attrib(ColorAttrib::make_vertex(), -1);
|
geom_state = geom_state->add_attrib(ColorAttrib::make_vertex(), -1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user