summaryrefslogtreecommitdiff
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-01 14:53:48 +0100
committerskal <pascal.massimino@gmail.com>2026-02-01 14:53:48 +0100
commitd4120e50c16ca6c71294cbf3cd614f9680b0e299 (patch)
tree23a46503d973cb14f6999ea7c3af45fe6414a055 /src/gpu/effects
parentc7087fa3004349943d9b76e5015e87314b366de4 (diff)
feat(assets): Implement procedural asset generation pipeline
- Updated asset_packer to parse PROC(...) syntax with robust regex. - Implemented runtime dispatch in AssetManager for procedural generation. - Added procedural generator functions (noise, grid, periodic). - Added comprehensive tests for procedural asset lifecycle.
Diffstat (limited to 'src/gpu/effects')
-rw-r--r--src/gpu/effects/hybrid_3d_effect.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gpu/effects/hybrid_3d_effect.h b/src/gpu/effects/hybrid_3d_effect.h
new file mode 100644
index 0000000..a0a82b5
--- /dev/null
+++ b/src/gpu/effects/hybrid_3d_effect.h
@@ -0,0 +1,27 @@
+// This file is part of the 64k demo project.
+// It defines the Hybrid3DEffect, integrating the 3D renderer into the demo timeline.
+
+#pragma once
+
+#include "gpu/effect.h"
+#include "3d/renderer.h"
+#include "3d/scene.h"
+#include "3d/camera.h"
+
+class Hybrid3DEffect : public Effect {
+ public:
+ Hybrid3DEffect();
+ 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;
+
+ private:
+ Renderer3D renderer_;
+ Scene scene_;
+ Camera camera_;
+ WGPUDevice device_ = nullptr;
+ WGPUQueue queue_ = nullptr;
+ int width_ = 0;
+ int height_ = 0;
+};