diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-01 16:18:19 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-01 16:18:19 +0100 |
| commit | 1522b95c838fc3e567066fd96dede3dca25cbc95 (patch) | |
| tree | 24dd8d2bc586f8b9f8f3518b4fe68907e8eeb1d4 /src/gpu/effects/hybrid_3d_effect.h | |
| parent | 1481b0a6313b725eec3e3ebeea085e98703df00f (diff) | |
feat(gpu): Integrate bumpy 3D renderer into main demo
- Added depth buffer support to MainSequence.
- Implemented Hybrid3DEffect for the main timeline.
- Fixed effect initialization order in MainSequence.
- Ensured depth-stencil compatibility for all scene effects.
- Updated demo sequence with 3D elements and post-processing.
Diffstat (limited to 'src/gpu/effects/hybrid_3d_effect.h')
| -rw-r--r-- | src/gpu/effects/hybrid_3d_effect.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/effects/hybrid_3d_effect.h b/src/gpu/effects/hybrid_3d_effect.h index a0a82b5..1b0eab7 100644 --- a/src/gpu/effects/hybrid_3d_effect.h +++ b/src/gpu/effects/hybrid_3d_effect.h @@ -7,21 +7,21 @@ #include "3d/renderer.h" #include "3d/scene.h" #include "3d/camera.h" +#include "gpu/texture_manager.h" class Hybrid3DEffect : public Effect { public: - Hybrid3DEffect(); + Hybrid3DEffect(WGPUDevice device, WGPUQueue queue, WGPUTextureFormat format); virtual ~Hybrid3DEffect() override = default; - void init(WGPUDevice device, WGPUQueue queue, int width, int height) override; - void render(WGPURenderPassEncoder pass, float time, float beat, float alpha) override; + void init(MainSequence* demo) override; + void render(WGPURenderPassEncoder pass, float time, float beat, float intensity, float aspect_ratio) override; private: Renderer3D renderer_; + TextureManager texture_manager_; Scene scene_; Camera camera_; - WGPUDevice device_ = nullptr; - WGPUQueue queue_ = nullptr; - int width_ = 0; - int height_ = 0; + int width_ = 1280; + int height_ = 720; }; |
