Skip to content
Permalink
Browse files

Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag (#9639)

Fixes #9637.
  • Loading branch information
GreenXenith committed Apr 11, 2020
1 parent 1292bdb commit fbf74dc52456b13b0dbd7bb9d3206e5828254910
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 {

0 comments on commit fbf74dc

Please sign in to comment.