Repository navigation
API Class PostProcessing
Defined in: src/engine/render/components.ts:676
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:692
Ambient occlusion: darkens creases and contact points.
aoIntensity: number = 2;Defined in: src/engine/render/components.ts:694
Strength of the ambient occlusion (2 = default).
aoRadius: number = 1;Defined in: src/engine/render/components.ts:696
Radius of the occlusion search, in metres.
bloom: boolean = false;Defined in: src/engine/render/components.ts:683
Bloom glow around bright areas.
bloomIntensity: number = 1;Defined in: src/engine/render/components.ts:685
Strength of the bloom glow (1 = default).
bloomRadius: number = 0.85;Defined in: src/engine/render/components.ts:689
Spread of the bloom glow, 0 to 1.
bloomThreshold: number = 0.9;Defined in: src/engine/render/components.ts:687
Brightness above which pixels bloom, 0 to 1 (luminance).
bokehScale: number = 2;Defined in: src/engine/render/components.ts:728
Size of the out-of-focus blur (bokeh) shapes.
brightness: number = 0;Defined in: src/engine/render/components.ts:699
Brightness offset, -1 to 1 (0 = unchanged).
chromaticAberration: boolean = false;Defined in: src/engine/render/components.ts:731
Splits red, green and blue at the screen edges.
chromaticAberrationAmount: number = 0.002;Defined in: src/engine/render/components.ts:733
Offset of the colour split, as a fraction of the screen (0.002 = default).
contrast: number = 0;Defined in: src/engine/render/components.ts:701
Contrast, -1 to 1 (0 = unchanged).
depthOfField: boolean = false;Defined in: src/engine/render/components.ts:722
Blurs what is out of focus.
exposure: number = 1;Defined in: src/engine/render/components.ts:680
Exposure multiplier applied before tone mapping (1 = unchanged).
focusDistance: number = 10;Defined in: src/engine/render/components.ts:724
Distance to the focused plane, in metres.
focusRange: number = 5;Defined in: src/engine/render/components.ts:726
Depth range around the focus distance that stays sharp, in metres.
hue: number = 0;Defined in: src/engine/render/components.ts:705
Hue rotation in degrees (0 = unchanged).
lut: string = "";Defined in: src/engine/render/components.ts:710
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:712
How much of the lookup table's look to apply, 0 to 1.
saturation: number = 0;Defined in: src/engine/render/components.ts:703
Saturation, -1 (greyscale) to 1 (0 = unchanged).
toneMapping: ToneMapping = "agx";Defined in: src/engine/render/components.ts:678
Tone mapping curve applied to the HDR scene.
vignette: boolean = false;Defined in: src/engine/render/components.ts:715
Darkens the edges of the screen.
vignetteDarkness: number = 0.5;Defined in: src/engine/render/components.ts:717
How dark the vignette gets, 0 to 1.
vignetteOffset: number = 0.5;Defined in: src/engine/render/components.ts:719
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