Skip to content

Class: HeatmapPrimitive ​

Experimental

One z grid, one draw call. See the module header for the texture layout and shading rules.

Implements ​

Constructors ​

Constructor ​

ts
new HeatmapPrimitive(context, data): HeatmapPrimitive;

Experimental

Parameters ​

ParameterType
contextPrimitiveContext
dataHeatmapInput

Returns ​

HeatmapPrimitive

Properties ​

PropertyModifierTypeDescription
objectreadonlyMesh<BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>, ShaderMaterial>Experimental Root object to add to a viewport's scene.
uniformsreadonlyHeatmapUniformsExperimental

Accessors ​

current ​

Get Signature ​

ts
get current(): Readonly<HeatmapData>;

Experimental

The current data (with defaults applied).

Returns ​

Readonly<HeatmapData>

Methods ​

dispose() ​

ts
dispose(): void;

Experimental

Release GPU resources. The primitive must not be used afterwards.

Returns ​

void

Implementation of ​

Primitive.dispose


setTransform() ​

ts
setTransform(transform): void;

Experimental

Uniforms only: textures are never touched.

Parameters ​

ParameterType
transformDataTransform

Returns ​

void

Implementation of ​

Primitive.setTransform


setViewport() ​

ts
setViewport(size): void;

Experimental

The viewport size (render targets; the canvas is synced before each draw).

Parameters ​

ParameterType
sizeViewportSize

Returns ​

void

Implementation of ​

Primitive.setViewport


update() ​

ts
update(patch): void;

Experimental

Replace or patch the primitive's data. Omitted fields keep their previous values.

Parameters ​

ParameterType
patchPartial<HeatmapData>

Returns ​

void

Implementation of ​

Primitive.update

Released under the MIT License.