Renderer · function
splatPixelBox
The pixel box a splat covers, clamped to the frame, into out as left, top, right,
bottom — or false where it covers nothing.
Explained in Hello world.
function splatPixelBox(bins: ArrayLike<number>, at: number, width: number, height: number, out: Int32Array): booleanimport { splatPixelBox } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
bins | ArrayLike<number> | |
at | number | |
width | number | |
height | number | |
out | Int32Array |
In depth
This is the rasteriser's own box. A device that computed its footprint any other way would be a second answer to the same question.