TransitionDef beta
Interface of @v12-engine/client
ts
export interface TransitionDefWhat a transition is: its id, and how it is drawn: one of the client's (builtIn), or a mask of a game's own (maskWGSL: the body of fn mask(uv: vec2f, t: f32, at: vec2f, soft: f32) -> f32 in WGSL, 1 where the old picture shows and 0 the new)
Members
builtIn
ts
builtIn?: BuiltInTransition;The client's own transition to draw this one with
defaults
ts
defaults?: TransitionOptions;How it is played when the call says nothing: its own seconds, colour, angle...
id
ts
id: string;The transition's key in its registry, as cut.transition names it
maskWGSL
ts
maskWGSL?: string;Body of the WGSL mask function for a transition of the game's own; 1 where the old picture shows, 0 the new
name
ts
name?: string;What it is, for the editor's list