Skip to content

PictureSettings beta ​

Interface of @v12-engine/render

ts
export interface PictureSettings

What the picture's passes do, each read every frame: the client's MapPictureLook and its quality's knobs

Members ​

bloom ​

ts
bloom: number;

How much of the glow around what is bright is added (0: none)

bloomSpread ​

ts
bloomSpread: number;

How wide the glow is: 1 is 64 pixels

bloomThreshold ​

ts
bloomThreshold: number;

How bright a pixel is before it glows, after the exposure

contrast ​

ts
contrast: number;

How far the colours are pushed from the middle grey, after the gamma (1: as they are)

exposure ​

ts
exposure: number;

What the colour is multiplied by before the tone mapping (1: as drawn)

fxaa ​

ts
fxaa: boolean;

FXAA, the last pass

lens ​

ts
lens?: PictureLens;

A cinematic's lens (the client's CinematicPicture, as it resolves it): none, or nothing in it, no pass of its

occlusion ​

ts
occlusion: number;

How dark the occlusion is in a crevice (0: none; the client's looks have 0.6)

occlusionQuality ​

ts
occlusionQuality: 'low' | 'high';

high: a quarter of the pixels, 16 samples; low: a sixteenth, 8 samples

occlusionRadius ​

ts
occlusionRadius: number;

How far around a point what hides it is looked for, in cells

passes ​

ts
passes?: PostPass[];

A game's own passes over the picture (post/gamePasses.ts: Renderer.post.addPass), at their places: read every frame, the one array carried from a chain to the next. None, or none on: no pass of theirs

renderScale ​

ts
renderScale?: number;

The share of the canvas's pixels a side the picture is drawn at, from 0.25 to 1 (1 where left out): the last pass brings it up to the screen. Read by the renderer, which makes the chain again when it changes

saturation ​

ts
saturation: number;

How full the colours are (1: as they are, 0 grey)

screen ​

ts
screen?: ScreenStages;

The screen's stages (post/screen.ts: a cut's transition, the videos, a blur, the frame), as the client writes them: read every frame, and with nothing asked there is no pass of theirs

sharpen ​

ts
sharpen: number;

How much the sharpening adds (0: none)

showOcclusion ​

ts
showOcclusion?: boolean;

A debug view: the occlusion's mask alone, as the finish reads it

taa ​

ts
taa: boolean;

The temporal blend: every frame drawn a part of a pixel aside, eight of them blended

tint ​

ts
tint: readonly [number, number, number];

A colour the whole picture leans to, as much as tintAmount

tintAmount ​

ts
tintAmount: number;

How much the picture leans to tint (0: none)

tone ​

ts
tone: 'none' | 'standard' | 'aces' | 'neutral';

The tone mapping: none, the standard one, ACES or the neutral one

vignette ​

ts
vignette: number;

How dark the corners are (0: none), and in what colour

vignetteColour ​

ts
vignetteColour: readonly [number, number, number];

The colour the corners darken to