ported ALL effects to opengl
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <QXmlStreamAttributes>
|
||||
|
||||
InvertEffect::InvertEffect(Clip* c) : Effect(c, EFFECT_TYPE_VIDEO, VIDEO_INVERT_EFFECT) {
|
||||
enable_opengl = true;
|
||||
enable_shader = true;
|
||||
|
||||
EffectRow* amount_row = add_row("Amount:");
|
||||
amount_val = amount_row->add_field(EFFECT_FIELD_DOUBLE);
|
||||
@@ -26,6 +26,6 @@ InvertEffect::InvertEffect(Clip* c) : Effect(c, EFFECT_TYPE_VIDEO, VIDEO_INVERT_
|
||||
fragPath = ":/shaders/inverteffect.frag";
|
||||
}
|
||||
|
||||
void InvertEffect::process_gl(double timecode, GLTextureCoords&) {
|
||||
void InvertEffect::process_shader(double timecode) {
|
||||
glslProgram->setUniformValue("amount_val", (GLfloat) (amount_val->get_double_value(timecode)*0.01));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user