mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
display: fix missed cases in 364d5d82fe4b33acd8679a66ecf8f9f55eeb00c8
This commit is contained in:
parent
364d5d82fe
commit
63a764a61b
@ -1489,7 +1489,7 @@ fetch_specified_part(Shader::ShaderMatInput part, InternalName *name,
|
|||||||
} else if (index == 0) {
|
} else if (index == 0) {
|
||||||
// Apply the default OpenGL lights otherwise.
|
// Apply the default OpenGL lights otherwise.
|
||||||
// Special exception for light 0, which defaults to white.
|
// Special exception for light 0, which defaults to white.
|
||||||
t.set_row(0, _light_color_scale);
|
t.set_row(0, LVecBase4(1, 1, 1, 1));
|
||||||
}
|
}
|
||||||
return &t;
|
return &t;
|
||||||
}
|
}
|
||||||
@ -1534,7 +1534,6 @@ fetch_specified_member(const NodePath &np, CPT_InternalName attrib, LMatrix4 &t)
|
|||||||
Light *light = node->as_light();
|
Light *light = node->as_light();
|
||||||
nassertr(light != nullptr, &LMatrix4::ident_mat());
|
nassertr(light != nullptr, &LMatrix4::ident_mat());
|
||||||
LColor c = light->get_color();
|
LColor c = light->get_color();
|
||||||
c.componentwise_mult(_light_color_scale);
|
|
||||||
t.set_row(3, c);
|
t.set_row(3, c);
|
||||||
return &t;
|
return &t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user