Repository navigation
API Class PostProcessing
Defined in: src/engine/render/components.ts:627
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:643
Ambient occlusion: darkens creases and contact points.
aoIntensity: number = 2;Defined in: src/engine/render/components.ts:645
Strength of the ambient occlusion (2 = default).
aoRadius: number = 1;Defined in: src/engine/render/components.ts:647
Radius of the occlusion search, in metres.
bloom: boolean = false;Defined in: src/engine/render/components.ts:634
Bloom glow around bright areas.
bloomIntensity: number = 1;Defined in: src/engine/render/components.ts:636
Strength of the bloom glow (1 = default).
bloomRadius: number = 0.85;Defined in: src/engine/render/components.ts:640
Spread of the bloom glow, 0 to 1.
bloomThreshold: number = 0.9;Defined in: src/engine/render/components.ts:638
Brightness above which pixels bloom, 0 to 1 (luminance).
bokehScale: number = 2;Defined in: src/engine/render/components.ts:679
Size of the out-of-focus blur (bokeh) shapes.
brightness: number = 0;Defined in: src/engine/render/components.ts:650
Brightness offset, -1 to 1 (0 = unchanged).
chromaticAberration: boolean = false;Defined in: src/engine/render/components.ts:682
Splits red, green and blue at the screen edges.
chromaticAberrationAmount: number = 0.002;Defined in: src/engine/render/components.ts:684
Offset of the colour split, as a fraction of the screen (0.002 = default).
contrast: number = 0;Defined in: src/engine/render/components.ts:652
Contrast, -1 to 1 (0 = unchanged).
depthOfField: boolean = false;Defined in: src/engine/render/components.ts:673
Blurs what is out of focus.
exposure: number = 1;Defined in: src/engine/render/components.ts:631
Exposure multiplier applied before tone mapping (1 = unchanged).
focusDistance: number = 10;Defined in: src/engine/render/components.ts:675
Distance to the focused plane, in metres.
focusRange: number = 5;Defined in: src/engine/render/components.ts:677
Depth range around the focus distance that stays sharp, in metres.
hue: number = 0;Defined in: src/engine/render/components.ts:656
Hue rotation in degrees (0 = unchanged).
lut: string = "";Defined in: src/engine/render/components.ts:661
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:663
How much of the lookup table's look to apply, 0 to 1.
saturation: number = 0;Defined in: src/engine/render/components.ts:654
Saturation, -1 (greyscale) to 1 (0 = unchanged).
toneMapping: ToneMapping = "agx";Defined in: src/engine/render/components.ts:629
Tone mapping curve applied to the HDR scene.
vignette: boolean = false;Defined in: src/engine/render/components.ts:666
Darkens the edges of the screen.
vignetteDarkness: number = 0.5;Defined in: src/engine/render/components.ts:668
How dark the vignette gets, 0 to 1.
vignetteOffset: number = 0.5;Defined in: src/engine/render/components.ts:670
How far in from the edges the vignette starts, 0 to 1.
get enabled(): boolean;Defined in: src/engine/core/Component.ts:57
boolean
set enabled(value): void;Defined in: src/engine/core/Component.ts:61
boolean
void
get gameObject(): GameObject;Defined in: src/engine/core/Component.ts:37
Unity-style alias for node.
get isActiveAndEnabled(): boolean;Defined in: src/engine/core/Component.ts:68
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:32
The node this component is on.
get owner(): GameObject;Defined in: src/engine/core/Component.ts:45
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:93
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:51
The Transform of the node this component is on, if it has one.
get world(): WorldHandle;Defined in: src/engine/core/Component.ts:82
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:103
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