mirror of
https://github.com/minetest/minetest.git
synced 2025-03-21 17:52:33 +01:00
@ -1264,18 +1264,19 @@ void GenericCAO::updateTextures(std::string mod)
|
|||||||
buf->getMaterial().AmbientColor = m_prop.colors[1];
|
buf->getMaterial().AmbientColor = m_prop.colors[1];
|
||||||
buf->getMaterial().DiffuseColor = m_prop.colors[1];
|
buf->getMaterial().DiffuseColor = m_prop.colors[1];
|
||||||
buf->getMaterial().SpecularColor = m_prop.colors[1];
|
buf->getMaterial().SpecularColor = m_prop.colors[1];
|
||||||
setMeshColor(mesh, m_prop.colors[1]);
|
|
||||||
} else if (!m_prop.colors.empty()) {
|
} else if (!m_prop.colors.empty()) {
|
||||||
buf->getMaterial().AmbientColor = m_prop.colors[0];
|
buf->getMaterial().AmbientColor = m_prop.colors[0];
|
||||||
buf->getMaterial().DiffuseColor = m_prop.colors[0];
|
buf->getMaterial().DiffuseColor = m_prop.colors[0];
|
||||||
buf->getMaterial().SpecularColor = m_prop.colors[0];
|
buf->getMaterial().SpecularColor = m_prop.colors[0];
|
||||||
setMeshColor(mesh, m_prop.colors[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buf->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, use_trilinear_filter);
|
buf->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, use_trilinear_filter);
|
||||||
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, use_bilinear_filter);
|
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, use_bilinear_filter);
|
||||||
buf->getMaterial().setFlag(video::EMF_ANISOTROPIC_FILTER, use_anisotropic_filter);
|
buf->getMaterial().setFlag(video::EMF_ANISOTROPIC_FILTER, use_anisotropic_filter);
|
||||||
}
|
}
|
||||||
|
// Set mesh color (only if lighting is disabled)
|
||||||
|
if (!m_prop.colors.empty() && m_glow < 0)
|
||||||
|
setMeshColor(mesh, m_prop.colors[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user