added temporary workaround for opacity issues
This commit is contained in:
@@ -8,11 +8,9 @@ CrossDissolveTransition::CrossDissolveTransition(Clip* c, Clip* s, const EffectM
|
||||
// add_row("Smooth")->add_field(EFFECT_FIELD_BOOL, "smooth");
|
||||
}
|
||||
|
||||
void CrossDissolveTransition::process_coords(double progress, GLTextureCoords&, int data) {
|
||||
void CrossDissolveTransition::process_coords(double progress, GLTextureCoords& coords, int data) {
|
||||
if (!(data == TA_CLOSING_TRANSITION && secondary_clip != nullptr)) {
|
||||
float color[4];
|
||||
glGetFloatv(GL_CURRENT_COLOR, color);
|
||||
if (data == TA_CLOSING_TRANSITION) progress = 1.0 - progress;
|
||||
glColor4f(1.0, 1.0, 1.0, color[3]*progress);
|
||||
coords.opacity *= progress;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user