summaryrefslogtreecommitdiff
path: root/src/effects/scene1_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/scene1_effect.h')
-rw-r--r--src/effects/scene1_effect.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/effects/scene1_effect.h b/src/effects/scene1_effect.h
new file mode 100644
index 0000000..781cbae
--- /dev/null
+++ b/src/effects/scene1_effect.h
@@ -0,0 +1,21 @@
+// Scene1 effect - raymarching cube & sphere scene
+
+#pragma once
+
+#include "gpu/effect.h"
+#include "gpu/uniform_helper.h"
+#include "gpu/wgpu_resource.h"
+
+class Scene1 : public Effect {
+ public:
+ Scene1(const GpuContext& ctx, const std::vector<std::string>& inputs,
+ const std::vector<std::string>& outputs, float start_time,
+ float end_time);
+
+ void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params,
+ NodeRegistry& nodes) override;
+
+ private:
+ RenderPipeline pipeline_;
+ BindGroup bind_group_;
+};