mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Fix model[] being lit wrongly if shaders are disabled (#15364)
This commit is contained in:
parent
0e06590ffd
commit
3064f3ccb7
2 changed files with 10 additions and 0 deletions
|
@ -917,6 +917,9 @@ void GenericCAO::setNodeLight(const video::SColor &light_color)
|
|||
return;
|
||||
setColorParam(node, light_color);
|
||||
} else {
|
||||
// TODO refactor vertex colors to be separate from the other vertex attributes
|
||||
// instead of mutating meshes / buffers for everyone via setMeshColor.
|
||||
// (Note: There are a couple more places here where setMeshColor is used.)
|
||||
if (m_meshnode) {
|
||||
setMeshColor(m_meshnode->getMesh(), light_color);
|
||||
} else if (m_animated_meshnode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue