Mesh: implement PropertyMaterial

This commit is contained in:
wmayer
2022-10-23 19:49:46 +02:00
parent 094ec8cb59
commit 86bf176b1f
6 changed files with 444 additions and 2 deletions

View File

@@ -99,6 +99,32 @@ struct QUAD {int iV[4];};
// --------------------------------------------------------------
bool Material::operator == (const Material& mat) const
{
if (binding != mat.binding)
return false;
if (ambientColor != mat.ambientColor)
return false;
if (diffuseColor != mat.diffuseColor)
return false;
if (specularColor != mat.specularColor)
return false;
if (emissiveColor != mat.emissiveColor)
return false;
if (shininess != mat.shininess)
return false;
if (transparency != mat.transparency)
return false;
return true;
}
bool Material::operator != (const Material& mat) const
{
return !operator==(mat);
}
// --------------------------------------------------------------
std::vector<std::string> MeshInput::supportedMeshFormats()
{
std::vector<std::string> fmt;