Refactor codebase. Add punctual light support

This commit is contained in:
2026-01-01 21:52:41 +09:00
parent acaaa2a86e
commit b41ea60c02
19 changed files with 246 additions and 99 deletions

View File

@@ -56,7 +56,7 @@ bool scene_build_bvh(scene_t* scene);
void scene_free(scene_t* scene);
// Mesh model/instance API (simple first, flexible later).
mesh_model_handle_t scene_add_mesh_model(scene_t* scene, uint64_t triangle_reserve);
mesh_model_handle_t scene_add_mesh_model(scene_t* scene, uint32_t triangle_reserve);
mesh_instance_handle_t scene_add_mesh_instance(scene_t* scene, mesh_model_handle_t model, mat4s local_to_world);
void scene_remove_mesh_instance(scene_t* scene, mesh_instance_handle_t instance);
void scene_set_mesh_instance_transform(scene_t* scene, mesh_instance_handle_t instance, mat4s local_to_world);