From fbf74dc52456b13b0dbd7bb9d3206e5828254910 Mon Sep 17 00:00:00 2001 From: Alex <24834740+GreenXenith@users.noreply.github.com> Date: Sat, 11 Apr 2020 04:45:14 -0700 Subject: [PATCH] Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag (#9639) Fixes #9637. --- src/client/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {