Renderer · function

probeVisibilityWeight

How much a probe's answer is trusted at a point this far away in this direction.

Explained in Hello world.

function probeVisibilityWeight(visibility: ProbeVisibility, layer: number, x: number, y: number, z: number, distanceM: number): number
import { probeVisibilityWeight } from '@driftengine/core';

Parameters

ParameterTypeDescription
visibilityProbeVisibility
layernumber
xnumber
ynumber
znumber
distanceMnumber

In depth

One in front of what the probe saw; a Chebyshev bound on the depth variance behind it, cubed. Continuous everywhere, which is what visibleProbes then crushes rather than this.