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): boolean
import { splatPixelBox } from '@driftengine/core';

Parameters

ParameterTypeDescription
binsArrayLike<number>
atnumber
widthnumber
heightnumber
outInt32Array

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.