Fix loading normal maps (new XML syntax)
This commit is contained in:
parent
8a0fb9c187
commit
6695238284
@ -341,6 +341,11 @@ Material::Material(const XMLNode *node, bool deprecated)
|
||||
// ---- End backwards compatibility
|
||||
}
|
||||
|
||||
if (m_shader_type == SHADERTYPE_SOLID)
|
||||
{
|
||||
node->get("normal-map", &m_normal_map_tex);
|
||||
}
|
||||
|
||||
if (m_disable_z_write && m_shader_type != SHADERTYPE_ALPHA_BLEND && m_shader_type != SHADERTYPE_ADDITIVE)
|
||||
{
|
||||
Log::debug("material", "Disabling writes to z buffer only makes sense when compositing is blending or additive (for %s)", m_texname.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user