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): numberimport { probeVisibilityWeight } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
visibility | ProbeVisibility | |
layer | number | |
x | number | |
y | number | |
z | number | |
distanceM | number |
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.