mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
ShaderGenerator: additional case where vtx_color isn't needed
See sample code in a comment in #370
This commit is contained in:
parent
b836a60adb
commit
60468b0bec
@ -738,7 +738,7 @@ synthesize_shader(const RenderState *rs, const GeomVertexAnimationSpec &anim) {
|
||||
bool need_color = false;
|
||||
if (key._color_type != ColorAttrib::T_off) {
|
||||
if (key._lighting) {
|
||||
if ((key._material_flags & Material::F_ambient) == 0 ||
|
||||
if (((key._material_flags & Material::F_ambient) == 0 && key._have_separate_ambient) ||
|
||||
(key._material_flags & Material::F_diffuse) == 0 ||
|
||||
key._calc_primary_alpha) {
|
||||
need_color = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user