Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag (#9639)

Fixes #9637.
This commit is contained in:
Alex 2020-04-11 04:45:14 -07:00 committed by GitHub
parent 1292bdbbce
commit fbf74dc524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {