Repository navigation
API Class PostProcessing
Defined in: src/engine/render/components.ts:202
Post-processing for the camera on the same node (ADR 0051). Effects run when this component asks for them and the graphics quality tier allows them. The main (lowest-depth) camera gets them in this version; other cameras draw without effects.
new PostProcessing(): PostProcessing;PostProcessing
ambientOcclusion: boolean = false;Defined in: src/engine/render/components.ts:218
Ambient occlusion: darkens creases and contact points.
aoIntensity: number = 2;Defined in: src/engine/render/components.ts:220
Strength of the ambient occlusion (2 = default).
aoRadius: number = 1;Defined in: src/engine/render/components.ts:222
Radius of the occlusion search, in metres.
bloom: boolean = false;Defined in: src/engine/render/components.ts:209
Bloom glow around bright areas.
bloomIntensity: number = 1;Defined in: src/engine/render/components.ts:211
Strength of the bloom glow (1 = default).
bloomRadius: number = 0.85;Defined in: src/engine/render/components.ts:215
Spread of the bloom glow, 0 to 1.
bloomThreshold: number = 0.9;Defined in: src/engine/render/components.ts:213
Brightness above which pixels bloom, 0 to 1 (luminance).
bokehScale: number = 2;Defined in: src/engine/render/components.ts:254
Size of the out-of-focus blur (bokeh) shapes.
brightness: number = 0;Defined in: src/engine/render/components.ts:225
Brightness offset, -1 to 1 (0 = unchanged).
chromaticAberration: boolean = false;Defined in: src/engine/render/components.ts:257
Splits red, green and blue at the screen edges.
chromaticAberrationAmount: number = 0.002;Defined in: src/engine/render/components.ts:259
Offset of the colour split, as a fraction of the screen (0.002 = default).
contrast: number = 0;Defined in: src/engine/render/components.ts:227
Contrast, -1 to 1 (0 = unchanged).
depthOfField: boolean = false;Defined in: src/engine/render/components.ts:248
Blurs what is out of focus.
exposure: number = 1;Defined in: src/engine/render/components.ts:206
Exposure multiplier applied before tone mapping (1 = unchanged).
focusDistance: number = 10;Defined in: src/engine/render/components.ts:250
Distance to the focused plane, in metres.
focusRange: number = 5;Defined in: src/engine/render/components.ts:252
Depth range around the focus distance that stays sharp, in metres.
hue: number = 0;Defined in: src/engine/render/components.ts:231
Hue rotation in degrees (0 = unchanged).
lut: string = "";Defined in: src/engine/render/components.ts:236
A colour lookup table (.cube, ADR 0111) applied to the final, tone-mapped image, as exported by
grading tools (DaVinci Resolve, Photoshop). Empty: none.
lutIntensity: number = 1;Defined in: src/engine/render/components.ts:238
How much of the lookup table's look to apply, 0 to 1.
saturation: number = 0;Defined in: src/engine/render/components.ts:229
Saturation, -1 (greyscale) to 1 (0 = unchanged).
toneMapping: ToneMapping = "agx";Defined in: src/engine/render/components.ts:204
Tone mapping curve applied to the HDR scene.
vignette: boolean = false;Defined in: src/engine/render/components.ts:241
Darkens the edges of the screen.
vignetteDarkness: number = 0.5;Defined in: src/engine/render/components.ts:243
How dark the vignette gets, 0 to 1.
vignetteOffset: number = 0.5;Defined in: src/engine/render/components.ts:245
How far in from the edges the vignette starts, 0 to 1.
get enabled(): boolean;Defined in: src/engine/core/Component.ts:62
boolean
set enabled(value): void;Defined in: src/engine/core/Component.ts:66
boolean
void
get gameObject(): GameObject;Defined in: src/engine/core/Component.ts:42
Unity-style alias for node.
get isActiveAndEnabled(): boolean;Defined in: src/engine/core/Component.ts:73
True when enabled, the node is active in the hierarchy, and the node is in a loaded world.
boolean
get node(): GameObject;Defined in: src/engine/core/Component.ts:37
The node this component is on.
get owner(): GameObject;Defined in: src/engine/core/Component.ts:50
The node this component acts for: the node itself when attached directly, or the parent node when this component lives on a component node (ADR 0009).
get time(): Readonly<TimeState>;Defined in: src/engine/core/Component.ts:98
This component's World's clock (ADR 0032): the same values as Time, but safe to read
outside the World's frame too (after an await, say).
Readonly<TimeState>
get transform(): Transform;Defined in: src/engine/core/Component.ts:56
The Transform of the node this component is on, if it has one.
get world(): WorldHandle;Defined in: src/engine/core/Component.ts:87
A handle on this component's World (ADR 0132): the same one Engine.findWorld returns. Load
a scene into it, pause, connect or destroy it: this.world.loadScene("scenes/level2.scene.json").
Throws for a World no Engine owns.
instantiate(prefabPath, options?): GameObject;Defined in: src/engine/core/Component.ts:108
Instantiate a prefab in this component's World (ADR 0034), like GameObject.instantiate.
Use it in code that may run after an await: by then the frame is over and the current World
is the Engine's default one, which may not be this component's. A parent from another
World throws.
string
InstantiateOptions = {}
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference