forked from Mirrorlandia_minetest/minetest
Use TILE_MATERIAL_ALPHA for use_texture_alpha entity flag (#9639)
Fixes #9637.
This commit is contained in:
parent
1292bdbbce
commit
fbf74dc524
@ -584,7 +584,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
|
|||||||
IShaderSource *shader_source = m_client->getShaderSource();
|
IShaderSource *shader_source = m_client->getShaderSource();
|
||||||
u32 shader_id = shader_source->getShader(
|
u32 shader_id = shader_source->getShader(
|
||||||
"object_shader",
|
"object_shader",
|
||||||
TILE_MATERIAL_BASIC,
|
(m_prop.use_texture_alpha) ? TILE_MATERIAL_ALPHA : TILE_MATERIAL_BASIC,
|
||||||
NDT_NORMAL);
|
NDT_NORMAL);
|
||||||
m_material_type = shader_source->getShaderInfo(shader_id).material;
|
m_material_type = shader_source->getShaderInfo(shader_id).material;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user