began transition rewrite
This commit is contained in:
@@ -29,8 +29,8 @@ CrossDissolveTransition::CrossDissolveTransition(ClipPtr c, ClipPtr s, const Eff
|
||||
}
|
||||
|
||||
void CrossDissolveTransition::process_coords(double progress, GLTextureCoords& coords, int data) {
|
||||
if (!(data == TA_CLOSING_TRANSITION && secondary_clip != nullptr)) {
|
||||
if (data == TA_CLOSING_TRANSITION) progress = 1.0 - progress;
|
||||
if (!(data == kTransitionClosing && secondary_clip != nullptr)) {
|
||||
if (data == kTransitionClosing) progress = 1.0 - progress;
|
||||
coords.opacity *= progress;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user