pub struct WipeTransitionNode {
pub progress: f32,
pub softness: f32,
pub angle: f32,
pub to_rgba: Vec<u8>,
pub to_width: u32,
pub to_height: u32,
}Expand description
Directional wipe that reveals clip B behind a moving edge.
progress = 0 outputs clip A, progress = 1 outputs clip B, and an edge sweeps
across the frame between them. angle (radians) points along the axis clip B
grows from, because the mask fills where the projection
exceeds the sweeping threshold: at angle = 0 clip B enters from the right and
the edge travels right-to-left; at angle = π/2 it enters from the bottom.
That is the opposite of how FFmpeg names its xfade wipes — wiperight sweeps its
edge rightward, so clip B enters from the left and maps to angle = π (RK-020).
softness feathers the edge (normalised units).
Fields§
§progress: f32Transition progress [0, 1]: 0 = clip A, 1 = clip B.
softness: f32Edge feather half-width in normalised units (0 = hard edge).
angle: f32Axis clip B grows from, in radians: 0 = from the right, π/2 = from the
bottom. See the type docs — this is the opposite of the FFmpeg wipe names.
to_rgba: Vec<u8>Clip B as RGBA bytes (to_width × to_height × 4).
to_width: u32Width of to_rgba.
to_height: u32Height of to_rgba.
Implementations§
Trait Implementations§
Source§impl RenderNode for WipeTransitionNode
Available on crate feature wgpu only.
impl RenderNode for WipeTransitionNode
wgpu only.