Skip to content

Commit

Permalink
Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag (#9639)
Browse files Browse the repository at this point in the history
Fixes #9637.
  • Loading branch information
GreenXenith committed Apr 11, 2020
1 parent 1292bdb commit fbf74dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/content_cao.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit fbf74dc

Please sign in to comment.