three’s exponential FogExp2, from a start measured back from the
camera’s focus.
| Property |
Type |
Description |
color? |
ColorRepresentation |
The fog’s colour. Required without daylight.keyframes, and refused with them: their skyHorizonColor colours the fog. |
density? |
number |
How much light a metre of fog takes, three’s FogExp2.density. Required without daylight.keyframes, and refused with them: their fogDensity gives it. |
referenceDistance? |
number |
The camera-to-focus distance the density holds at. Farther out the density thins by the square of (referenceDistance - startBeforeFocus) / (distance - startBeforeFocus), to 0.4 of it at least, so a zoom out draws no thicker frame, as Luminati’s zoom does; nearer, it holds. Left out, the density holds at every distance. |
startBeforeFocus |
number |
Metres short of the focus’s depth along the view where the fog starts: 7 puts 7 m of fog before the focus at every zoom, and a negative number starts it past the focus. The focus is the point setCameraFocus names; with none, the fog starts at the camera. |