mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
display: fix fallback of SMO_light_source_i_packed shader input
This is not actually used by anything, but we might as well ensure that it's set to something sensible
This commit is contained in:
parent
088a1f3774
commit
b511eabb0f
@ -1611,11 +1611,17 @@ fetch_specified_part(Shader::ShaderMatInput part, InternalName *name,
|
|||||||
// 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.
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
into[0].set_row(0, LVecBase4(1, 1, 1, 1));
|
into[0].set(1, 1, 1, 1,
|
||||||
|
1, 0, 0, 0,
|
||||||
|
0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0);
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
for (; i < (size_t)count; ++i) {
|
for (; i < (size_t)count; ++i) {
|
||||||
fetch_specified_member(NodePath(), name, into[i]);
|
into[i].set(0, 0, 0, 0,
|
||||||
|
1, 0, 0, 0,
|
||||||
|
0, 0, 0, 0,
|
||||||
|
0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user