LiteTransitionPass beta
Class of @v12-engine/client/lite-views
export declare class LiteTransitionPassThe transitions between a cinematic's shots on this renderer, the client's TransitionPass as the cinematics use it: played on the renderer's ScreenStages over the kept frame or a live view from the old shot
Members
constructor
constructor(host: LiteTransitionHost,
heightAt?: (x: number, z: number) => number);Constructs a new instance of the LiteTransitionPass class
active
get active(): boolean;Whether a transition plays now
armed
armed: boolean;Ready to keep the last frame at a cut: while a cinematic plays, the picture goes through the stages' targets
begin
begin(def: TransitionDef, options?: TransitionOptions, at?: () => Vec2 | undefined): void;Starts a transition: the last frame drawn is the old shot (or the old shot's camera goes on drawing, live); from here the new shot comes in over it as set moves it from 0 to 1. One playing is let go of
dispose
dispose(): void;The transition let go of, the stages told nothing, the old shot's view freed; calling it again does nothing
end
end(): void;The transition over (or skipped): the stages draw none, and the old shot's view stops drawing
frame
frame(): void;Once a frame: the stages told what to draw of the transition playing, and whether to keep the picture for a cut
on
get on(): boolean;Whether the picture goes through the stages now
registry
readonly registry: TransitionRegistry;The transitions known: the client's own, and the game's added (GameView.cinematics.transitions)
set
set(t: number, elapsed?: number): void;How far along the transition is (0 all old, 1 all new), and the seconds it has been going, for a live old shot
values
values(): LiteTransitionValues;The values a transition's stage reads
warm
warm(): {
ready(): boolean;
} | undefined;Nothing is made ahead here: the stages' shaders are the renderer's, made with the first cut's frame