diff options
author | stujones11 <stujones111@gmail.com> | 2018-12-20 22:40:17 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-12-20 23:40:17 +0100 |
commit | d994f7ca5f75431da8e17fd6762209c404d89482 (patch) | |
tree | 0207d6bf70056cf3acb58f885c6912c1b9a6d674 /src/client/content_cao.cpp | |
parent | ba07a8b87235896d2c8685db5ce6748dbd5e211d (diff) | |
download | dragonfireclient-d994f7ca5f75431da8e17fd6762209c404d89482.tar.xz |
Fix more transparency issues with ogles2 driver (#8005)
Diffstat (limited to 'src/client/content_cao.cpp')
-rw-r--r-- | src/client/content_cao.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 9e4725881..d2bd32afa 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -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, |