Renderer · const

PROBE_VISIBILITY_SHARPNESS

How sharply the Chebyshev bound is turned into a weight.

Explained in Hello world.

const PROBE_VISIBILITY_SHARPNESS = 3
import { PROBE_VISIBILITY_SHARPNESS } from '@driftengine/core';

In depth

The bound is generous by construction — it is an inequality, not a measurement — so a probe that is mostly occluded still scores a third of a fully visible one. Cubing it turns that third into a twenty-seventh, which is the difference between a wall that reads as a wall and one that reads as a curtain. Three is what the technique this follows uses, and it is here as a constant so the next person can see it is a choice.