Renderer · interface
SurfaceDissolve
The surface cut away where a noise in its uv falls under threshold, with a glowing band just
above it, and a colour laid over the surface through the same noise.
Explained in Hello world.
interface SurfaceDissolveimport type { SurfaceDissolve } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
noisereadonly | { readonly region: OverlayRegion; readonly tiling?: readonly [number, number]; } | |
thresholdreadonly | number | 0 keeps everything; 1 cuts everything. |
edgereadonlyoptional | number | The band's width, in the noise's own units. 0.05 unless given. |
edgeColourreadonlyoptional | Vec3 | The band's light. |
edgeIntensityreadonlyoptional | number | |
overlayreadonlyoptional | { readonly colour: Vec3; readonly amount: number; } | A colour laid over the surface through the noise, as light, and how much of it. |