Skip to content

LiteTransitionPass beta ​

Class of @v12-engine/client/lite-views

ts
export declare class LiteTransitionPass

The 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 ​

ts
constructor(host: LiteTransitionHost, 
    heightAt?: (x: number, z: number) => number);

Constructs a new instance of the LiteTransitionPass class

active ​

ts
get active(): boolean;

Whether a transition plays now

armed ​

ts
armed: boolean;

Ready to keep the last frame at a cut: while a cinematic plays, the picture goes through the stages' targets

begin ​

ts
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 ​

ts
dispose(): void;

The transition let go of, the stages told nothing, the old shot's view freed; calling it again does nothing

end ​

ts
end(): void;

The transition over (or skipped): the stages draw none, and the old shot's view stops drawing

frame ​

ts
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 ​

ts
get on(): boolean;

Whether the picture goes through the stages now

registry ​

ts
readonly registry: TransitionRegistry;

The transitions known: the client's own, and the game's added (GameView.cinematics.transitions)

set ​

ts
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 ​

ts
values(): LiteTransitionValues;

The values a transition's stage reads

warm ​

ts
warm(): {
        ready(): boolean;
    } | undefined;

Nothing is made ahead here: the stages' shaders are the renderer's, made with the first cut's frame