diff --git a/src/esp/assets/Asset.cpp b/src/esp/assets/Asset.cpp index cbea1fc111..4ee19959a8 100644 --- a/src/esp/assets/Asset.cpp +++ b/src/esp/assets/Asset.cpp @@ -35,6 +35,8 @@ bool operator==(const AssetInfo& a, const AssetInfo& b) { a.shaderTypeToUse == b.shaderTypeToUse && a.hasSemanticTextures == b.hasSemanticTextures && a.virtualUnitToMeters == b.virtualUnitToMeters && + a.splitInstanceMesh == b.splitInstanceMesh && + a.overridePhongMaterial == b.overridePhongMaterial && a.forceFlatShading == b.forceFlatShading; } @@ -42,5 +44,14 @@ bool operator!=(const AssetInfo& a, const AssetInfo& b) { return !(a == b); } +bool operator==(const PhongMaterialColor& a, const PhongMaterialColor& b) { + return a.ambientColor == b.ambientColor && a.diffuseColor == b.diffuseColor && + a.specularColor == b.specularColor; +} + +bool operator!=(const PhongMaterialColor& a, const PhongMaterialColor& b) { + return !(a == b); +} + } // namespace assets } // namespace esp diff --git a/src/esp/assets/Asset.h b/src/esp/assets/Asset.h index acfe807e34..06158622ce 100644 --- a/src/esp/assets/Asset.h +++ b/src/esp/assets/Asset.h @@ -38,6 +38,9 @@ struct PhongMaterialColor { Magnum::Color4 specularColor{0.2}; }; +bool operator==(const PhongMaterialColor& a, const PhongMaterialColor& b); +bool operator!=(const PhongMaterialColor& a, const PhongMaterialColor& b); + //! AssetInfo stores information necessary to identify and load an Asset struct AssetInfo { AssetType type = AssetType::UNKNOWN;