ADD: planet quadtree

This commit is contained in:
2025-12-29 15:36:17 +09:00
parent ea2b2c457c
commit dd97019264
12 changed files with 1321 additions and 349 deletions

View File

@@ -107,11 +107,13 @@ public:
std::shared_ptr<MeshAsset> createMesh(const std::string &name,
std::span<Vertex> vertices,
std::span<uint32_t> indices,
std::shared_ptr<GLTFMaterial> material = {});
std::shared_ptr<GLTFMaterial> material = {},
bool build_bvh = true);
std::shared_ptr<MeshAsset> getMesh(const std::string &name) const;
bool removeMesh(const std::string &name);
bool removeMeshDeferred(const std::string &name, DeletionQueue &dq);
// Convenience: create a PBR material from constants using engine default textures
std::shared_ptr<GLTFMaterial> createMaterialFromConstants(const std::string &name,