Golden Hog's Atmosphere

Fog that pools in the hollows before dawn, lies level across them with the hilltops standing clear, and burns off through the morning.
Fog that knows where it is. Before dawn it settles into the hollows, fills them to a level lid and
leaves the hilltops in clear air, so you can stand on a ridge and look out over it. Through the
morning it burns off, fastest on open ground, slowest in a deep sheltered valley, which keeps a
tenth of it all day.

What it draws:

- **Radiation fog.** Ground fog over flat damp land, thickest in the hour before sunrise.
- **Valley fog.** A body of air with a flat lid: the hollow fills, the ridge above it does not.
- **Haze.** The thin distance haze on a clear day.
- **Rain and snow mist.** Thicker air while the weather is on.

How thick, by the clock: 0.44 at midnight, 0.66 by 02:00, full from 03:00 to 07:00, gone by 11:00
on open ground. Night is capped at 0.70 of the dawn peak so a night walk stays readable; the cap is
a slider.

How wet, by the ground: it reads the land in a 96-block disc around you, 64 samples, and weights
them by distance. Walking from savanna across a river drifts the fog lid over about 190 blocks
instead of jumping in one step at the biome line.

**It is pixel art.** One fog texel covers exactly one block, aligned to the block grid, sampled
nearest-neighbour, four brightness levels with an ordered dither between them, pinned to world
coordinates so the pixels sit still instead of crawling as you walk. Contrast is a config knob.

**The fog distance may not come at you faster than you walk.** Thick fog has to shorten how far you
can see, and done naively that snaps: you step into a basin and the world closes in. Here the view
distance can only close at four blocks of wall per block you travel (four blocks a second standing
still), and a teleport of 16 blocks or more lifts the limit. It only ever shortens what the game has
already decided, never lengthens it, so on a clear day it changes nothing: Distant Horizons' far view
is untouched.

In-game settings screen with every knob, and a readout that prints what the model currently thinks
(thickness, lid height, humidity, fog wall drawn versus wanted) so a surprising view can be checked
rather than guessed at.

It stands down where fog would be wrong: underwater, in lava, in powder snow, in dimensions with no
sky light, and under blindness or darkness.

Client-side look only. No packets, no server authority, no effect on mob spawning, crop growth or
light levels.

### Pairs with

**Golden Hog's Horizons 1.2.0** is recommended alongside it. Horizons owns the fog *colour*: without
it, vanilla swings the sunrise tint in and out as you turn your head, and with a fog surface across
the whole view that swing is the whole screen.

Tested next to: Iris, Sodium, Distant Horizons 2.3.6, Fog 1.5.3, Bigger Vanilla Trees. Requires
Fabric API 0.96.4 or newer (0.96.11+1.20.4 is what it ships built against).

### Known limits

- The volume drawing path dithers visibly on the ground (78% of ground pixels differ from their
  neighbour by more than 12/255, against 2% on the geometry path). The default `auto` setting picks
  the geometry path for that reason; the volume path is there for flat interiors and is being worked on.
- Walking out of a fog bank leaves the view up to about 70 blocks short for roughly two seconds,
  because the distance is rate-limited in both directions.
- A flat open plain draws no valley fog at all. That is deliberate: a layer needs four blocks of
  relief before it is drawn, or every field would be fogged identically.
- The hanging wisps have holes in about 19% of cells. Knob, not law.

### Roadmap

- Dither the volume path properly, then make it the default indoors.
- Steam off warm water in cold air.
- Sun shafts through the fog.
- Damp air in caves.

Golden Hog's Atmosphere Team

profile avatar
  • 2
    Projects
  • 49
    Downloads

More from GoldenHog