summaryrefslogtreecommitdiff
path: root/src/effects/hybrid3_d_effect_v2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/hybrid3_d_effect_v2.h')
-rw-r--r--src/effects/hybrid3_d_effect_v2.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/effects/hybrid3_d_effect_v2.h b/src/effects/hybrid3_d_effect_v2.h
new file mode 100644
index 0000000..078b047
--- /dev/null
+++ b/src/effects/hybrid3_d_effect_v2.h
@@ -0,0 +1,30 @@
+// This file is part of the 64k demo project.
+// It declares Hybrid3DEffectV2 (simplified v2 port).
+// TODO: Full Renderer3D integration with Scene/Camera
+
+#pragma once
+
+#include "3d/camera.h"
+#include "3d/renderer.h"
+#include "3d/scene.h"
+#include "gpu/effect_v2.h"
+
+class Hybrid3DEffectV2 : public EffectV2 {
+ public:
+ Hybrid3DEffectV2(const GpuContext& ctx,
+ const std::vector<std::string>& inputs,
+ const std::vector<std::string>& outputs);
+ ~Hybrid3DEffectV2() override = default;
+
+ void declare_nodes(NodeRegistry& registry) override;
+ void render(WGPUCommandEncoder encoder,
+ const UniformsSequenceParams& params,
+ NodeRegistry& nodes) override;
+
+ private:
+ Renderer3D renderer_;
+ Scene scene_;
+ Camera camera_;
+ bool initialized_ = false;
+ std::string depth_node_;
+};