internal: store bounding box with SceneAsset rather than recalculating from renderables

This commit is contained in:
Nick Fisher
2025-01-07 12:02:44 +08:00
parent 124eed0264
commit 0e5253f7b3
12 changed files with 78 additions and 25 deletions

View File

@@ -167,6 +167,10 @@ namespace thermion
return entities[0];
}
const filament::Aabb getBoundingBox() const override {
return _asset->getBoundingBox();
}
private:
gltfio::FilamentAsset *_asset;
gltfio::AssetLoader *_assetLoader;