summaryrefslogtreecommitdiff
path: root/src/gpu/effects/scene1_effect.h
blob: dc5c747cb4455238a974efe84b7e7b71ab407db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This file is part of the 64k demo project.
// Scene1 effect - ShaderToy conversion (raymarching scene)

#ifndef SCENE1_EFFECT_H_
#define SCENE1_EFFECT_H_

#include "gpu/effect.h"

class Scene1Effect : public Effect {
 public:
  Scene1Effect(const GpuContext& ctx);
  void render(WGPURenderPassEncoder pass, float time, float beat,
              float intensity, float aspect_ratio) override;

 private:
  RenderPass pass_;
};

#endif /* SCENE1_EFFECT_H_ */