Chemistry · function
sourceRange
How far a source of a given power is worth considering, m.
Explained in Chemistry.
function sourceRange(power: number, minimumFlux: number): numberimport { sourceRange } from '@driftengine/chemistry';Parameters
| Parameter | Type | Description |
|---|---|---|
power | number | |
minimumFlux | number |
In depth
From P / (4π r²) = q_min, so a big fire reaches further than a small one rather than every
source sharing a constant radius. That is what stops a candle being tested against every parcel
in a scene and a bonfire being cut off at the same distance.