mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
ShaderGenerator: fix regression with flat colors
This commit is contained in:
parent
8806dedb51
commit
929808b867
@ -736,7 +736,7 @@ synthesize_shader(const RenderState *rs, const GeomVertexAnimationSpec &anim) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool need_color = false;
|
bool need_color = false;
|
||||||
if (key._color_type == ColorAttrib::T_vertex) {
|
if (key._color_type != ColorAttrib::T_off) {
|
||||||
if (key._lighting) {
|
if (key._lighting) {
|
||||||
if ((key._material_flags & Material::F_ambient) == 0 ||
|
if ((key._material_flags & Material::F_ambient) == 0 ||
|
||||||
(key._material_flags & Material::F_diffuse) == 0 ||
|
(key._material_flags & Material::F_diffuse) == 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user