Add CollisionMeshesPrefix option to import collision data from model asset

This commit is contained in:
Wojtek Figat
2022-02-06 14:11:13 +01:00
parent a186d1a7fc
commit 748d69a3cb
10 changed files with 88 additions and 15 deletions

View File

@@ -589,6 +589,17 @@ void MeshData::Merge(MeshData& other)
}
}
bool MaterialSlotEntry::UsesProperties() const
{
return Diffuse.Color != Color::White ||
Diffuse.TextureIndex != -1 ||
Emissive.Color != Color::Transparent ||
Emissive.TextureIndex != -1 ||
!Math::IsOne(Opacity.Value) ||
Opacity.TextureIndex != -1 ||
Normals.TextureIndex != -1;
}
void ModelData::CalculateLODsScreenSizes()
{
const float autoComputeLodPowerBase = 0.5f;