Skip to main content

Effect layers

Import these visual layers from @deck.gl-community/layers/effect-layers.

LayerInput and purpose
GlowPointLayerBorrowed GPU rows containing XYZ position, linear RGB tint, opacity, and a feature index. Draws additive point halos.
FireflyLayerThe same rows as GlowPointLayer, with wandering and pulsing enabled.
SketchEdgeLayerBorrowed GPU rows containing XYZ endpoints, a feature index, and a stable seed. Draws sketch-style strokes.
WeatherParticleLayerRain or snow rendered around the camera, with optional fog.
FlowParticleLayerBorrowed output from a luma.gl flow simulation. Draws streaks along the current particle motion.
WaterSurfaceLayerBorrowed triangle positions in local east, north, and up metres. Applies water or river shading.
import {FireflyLayer} from '@deck.gl-community/layers/effect-layers';

const layer = new FireflyLayer({
id: 'fireflies',
points: pointBuffer,
pointCount,
coordinateSystem: 'meter-offsets',
coordinateOrigin: [longitude, latitude, 0],
time: () => elapsedSeconds
});

Keep borrowed buffers alive while the layers render them and release them after the layers are finalized. Install @luma.gl/graph when using the experimental flow simulation output. The application advances that simulation and owns its buffers.

Original implementations

The Sketch Edges example renders an interactive riverfront with architectural outlines and PBR building materials.