mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
- Clear colors when reading property info.
- Set vertex colors on upright_sprites.
This commit is contained in:
parent
8037eda42c
commit
787cd15c14
2 changed files with 3 additions and 0 deletions
|
@ -1134,10 +1134,12 @@ void GenericCAO::updateTextures(std::string mod)
|
|||
buf->getMaterial().AmbientColor = m_prop.colors[1];
|
||||
buf->getMaterial().DiffuseColor = m_prop.colors[1];
|
||||
buf->getMaterial().SpecularColor = m_prop.colors[1];
|
||||
setMeshColor(mesh, m_prop.colors[1]);
|
||||
} else if (!m_prop.colors.empty()) {
|
||||
buf->getMaterial().AmbientColor = m_prop.colors[0];
|
||||
buf->getMaterial().DiffuseColor = m_prop.colors[0];
|
||||
buf->getMaterial().SpecularColor = m_prop.colors[0];
|
||||
setMeshColor(mesh, m_prop.colors[0]);
|
||||
}
|
||||
|
||||
buf->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, use_trilinear_filter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue