shake effect reimplemented and vastly improved

This commit is contained in:
itsmattkc
2018-11-01 19:01:34 +11:00
parent 9f0ff7f561
commit 70565dca7b
6 changed files with 135 additions and 5 deletions
+7
View File
@@ -28,6 +28,7 @@
#include "effects/internal/toneeffect.h"
#include "effects/internal/volumeeffect.h"
#include "effects/internal/paneffect.h"
#include "effects/internal/shakeeffect.h"
#include <QCheckBox>
#include <QGridLayout>
@@ -58,6 +59,7 @@ Effect* create_effect(Clip* c, const EffectMeta* em) {
case EFFECT_INTERNAL_VOLUME: return new VolumeEffect(c, em); break;
case EFFECT_INTERNAL_PAN: return new PanEffect(c, em); break;
case EFFECT_INTERNAL_TONE: return new ToneEffect(c, em); break;
case EFFECT_INTERNAL_SHAKE: return new ShakeEffect(c, em); break;
}
} else {
dout << "[ERROR] Invalid effect data";
@@ -112,6 +114,11 @@ void load_internal_effects() {
em.category = "Render";
em.internal = EFFECT_INTERNAL_SOLID;
video_effects.append(em);
em.name = "Shake";
em.category = "Distort";
em.internal = EFFECT_INTERNAL_SHAKE;
video_effects.append(em);
}
void load_shader_effects() {