aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <24834740+GreenXenith@users.noreply.github.com>2020-04-11 04:45:14 -0700
committerGitHub <noreply@github.com>2020-04-11 13:45:14 +0200
commitfbf74dc52456b13b0dbd7bb9d3206e5828254910 (patch)
treed6a306a84e76d197ded31a6f1355c50ce92374b8
parent1292bdbbcec45613c95aff9f2ea88aa49af25011 (diff)
downloadminetest-fbf74dc52456b13b0dbd7bb9d3206e5828254910.tar.gz
minetest-fbf74dc52456b13b0dbd7bb9d3206e5828254910.tar.bz2
minetest-fbf74dc52456b13b0dbd7bb9d3206e5828254910.zip
Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag (#9639)
Fixes #9637.
-rw-r--r--src/client/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
index 798899f9a..39ea4ab1e 100644
--- a/src/client/content_cao.cpp
+++ b/src/client/content_cao.cpp
@@ -584,7 +584,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
IShaderSource *shader_source = m_client->getShaderSource();
u32 shader_id = shader_source->getShader(
"object_shader",
- TILE_MATERIAL_BASIC,
+ (m_prop.use_texture_alpha) ? TILE_MATERIAL_ALPHA : TILE_MATERIAL_BASIC,
NDT_NORMAL);
m_material_type = shader_source->getShaderInfo(shader_id).material;
} else {