mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Fix more transparency issues with ogles2 driver (#8005)
This commit is contained in:
parent
ba07a8b872
commit
d994f7ca5f
2 changed files with 7 additions and 0 deletions
|
@ -1062,6 +1062,7 @@ void GenericCAO::updateTextures(std::string mod)
|
|||
texturestring = m_prop.textures[0];
|
||||
texturestring += mod;
|
||||
m_spritenode->getMaterial(0).MaterialType = material_type;
|
||||
m_spritenode->getMaterial(0).MaterialTypeParam = 0.5f;
|
||||
m_spritenode->setMaterialTexture(0,
|
||||
tsrc->getTextureForMesh(texturestring));
|
||||
|
||||
|
@ -1097,6 +1098,7 @@ void GenericCAO::updateTextures(std::string mod)
|
|||
// Set material flags and texture
|
||||
video::SMaterial& material = m_animated_meshnode->getMaterial(i);
|
||||
material.MaterialType = material_type;
|
||||
material.MaterialTypeParam = 0.5f;
|
||||
material.TextureLayer[0].Texture = texture;
|
||||
material.setFlag(video::EMF_LIGHTING, true);
|
||||
material.setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||
|
@ -1143,6 +1145,7 @@ void GenericCAO::updateTextures(std::string mod)
|
|||
// Set material flags and texture
|
||||
video::SMaterial& material = m_meshnode->getMaterial(i);
|
||||
material.MaterialType = material_type;
|
||||
material.MaterialTypeParam = 0.5f;
|
||||
material.setFlag(video::EMF_LIGHTING, false);
|
||||
material.setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||
material.setTexture(0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue