Renderer · interface

ProbeBlend

The eight probes surrounding a point, and how much of each it takes.

Explained in Hello world.

interface ProbeBlend
import type { ProbeBlend } from '@driftengine/core';

In depth

Filled rather than returned, because the renderer asks this per draw when it decides what to bake next, and the rule against allocating in a per-frame path is cheaper to keep than to reason about. Eight always, duplicates included: a point at the edge of the grid, or in a grid one probe wide, resolves several corners to the same layer and their weights add. That keeps the sum exactly one with no branch, which is what the shader wants too.

Properties

NameTypeDescription
layersreadonlyInt32Array
weightsreadonlyFloat32Array