Fix loading normal maps (new XML syntax)

This commit is contained in:
Marianne Gagnon 2014-09-23 20:11:03 -04:00
parent 8a0fb9c187
commit 6695238284

View File

@ -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());