Misc renderer improvements:

- Reuse renderer and gltf loader between scenes
- Use puish descriptors to simplify the management of descriptor sets in the scene renderer
- Don't keep the imgui swapchain in the scene classes
- Fix alpha blending, add alpha masking
- Fix mipmaps not being used in renderer
- Add cache when loading images and models
- Only premultiply the colours if required
- Add support for gltTF animations

Allow removing an object and its descendants from the scene, allow loading from a memory buffer
This commit is contained in:
Guillaume Meunier
2025-10-23 21:39:12 +02:00
parent 1f6ea0d4ca
commit aad1bb6a1b
21 changed files with 918 additions and 375 deletions
+3 -3
View File
@@ -110,7 +110,6 @@ private:
state state_ = state::initializing;
xr::swapchain swapchain;
xr::swapchain swapchain_imgui;
std::optional<audio> audio_handle;
@@ -172,7 +171,7 @@ private:
XrTime running_application_req = 0;
thread_safe<to_headset::running_applications> running_applications;
stream(std::string server_name);
stream(std::string server_name, scene & parent_scene);
public:
~stream();
@@ -180,7 +179,8 @@ public:
static std::shared_ptr<stream> create(
std::unique_ptr<wivrn_session> session,
float guessed_fps,
std::string server_name);
std::string server_name,
scene & parent_scene);
void render(const XrFrameState &) override;
void on_focused() override;