2023-07-21 16:42:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
2024-10-23 11:44:31 +00:00
|
|
|
#include "../shape/OsciPoint.h"
|
2023-07-21 16:42:29 +00:00
|
|
|
#include "../audio/Effect.h"
|
2024-02-11 22:06:35 +00:00
|
|
|
#include "../obj/Camera.h"
|
2023-07-21 16:42:29 +00:00
|
|
|
|
|
|
|
class PerspectiveEffect : public EffectApplication {
|
|
|
|
public:
|
2024-02-12 20:34:00 +00:00
|
|
|
PerspectiveEffect();
|
2023-12-20 23:30:20 +00:00
|
|
|
~PerspectiveEffect();
|
2023-07-21 16:42:29 +00:00
|
|
|
|
2024-10-23 11:44:31 +00:00
|
|
|
OsciPoint apply(int index, OsciPoint input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
2023-10-19 11:20:24 +00:00
|
|
|
|
2023-07-21 16:42:29 +00:00
|
|
|
private:
|
2024-02-11 22:06:35 +00:00
|
|
|
|
|
|
|
Camera camera;
|
2023-09-01 18:52:36 +00:00
|
|
|
};
|