mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow missing shaders
This commit is contained in:
parent
d7cf40a0ce
commit
be59668f47
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,6 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
|
||||||
shaderinfo.name = name;
|
shaderinfo.name = name;
|
||||||
shaderinfo.material_type = material_type;
|
shaderinfo.material_type = material_type;
|
||||||
shaderinfo.drawtype = drawtype;
|
shaderinfo.drawtype = drawtype;
|
||||||
shaderinfo.material = video::EMT_SOLID;
|
|
||||||
switch (material_type) {
|
switch (material_type) {
|
||||||
case TILE_MATERIAL_OPAQUE:
|
case TILE_MATERIAL_OPAQUE:
|
||||||
case TILE_MATERIAL_LIQUID_OPAQUE:
|
case TILE_MATERIAL_LIQUID_OPAQUE:
|
||||||
|
@ -598,6 +597,7 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
|
||||||
shaderinfo.base_material = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
shaderinfo.base_material = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
shaderinfo.material = shaderinfo.base_material;
|
||||||
|
|
||||||
bool enable_shaders = g_settings->getBool("enable_shaders");
|
bool enable_shaders = g_settings->getBool("enable_shaders");
|
||||||
if (!enable_shaders)
|
if (!enable_shaders)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue