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 SurfaceDissolve
import type { SurfaceDissolve } from '@driftengine/core';

Properties

NameTypeDescription
noisereadonly{ readonly region: OverlayRegion; readonly tiling?: readonly [number, number]; }
thresholdreadonlynumber0 keeps everything; 1 cuts everything.
edgereadonlyoptionalnumberThe band's width, in the noise's own units. 0.05 unless given.
edgeColourreadonlyoptionalVec3The band's light.
edgeIntensityreadonlyoptionalnumber
overlayreadonlyoptional{ readonly colour: Vec3; readonly amount: number; }A colour laid over the surface through the noise, as light, and how much of it.