HD: volumetric smoke and missile trails with clear tunnels through fog and cloud (render.set-smoke, API level 14; #54); sun speculars by material, wet surfaces and puddles in rain, wind in foliage (HORIZON_HD_SPECULAR=0, HORIZON_HD_WIND=0, HORIZON_HD_SMOKE=0); HD shaders checked for HLSL translation in their own test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -615,6 +615,29 @@ The HD lighting (AirDef fork): the world lit per pixel by the mods' lights, in h
|
||||
| `exposure` | `f32` | 1 as is; more brightens. |
|
||||
| `bloom` | `f32` | How much bright things glow (0 none, 1 strong). |
|
||||
|
||||
### record `smoke-segment`
|
||||
|
||||
A piece of smoke or exhaust trail (AirDef fork): a tube from `a` to `b` (equal ends: a puff) that the HD renderer ray-marches as a volume, lit by the sun, the sky and the mod's lights, and that thins the fog and clouds it passes through. The game derives everything from the age (`clock - born`): the radius grows from `radius-start` to `radius-end`, the density fades to nothing at `life`, the smoke drifts with the wind and rises by `rise`, so a segment is sent once per change of the set, not per frame, and a replay that seeks sends the segments of that moment.
|
||||
|
||||
| Field | Type | |
|
||||
| --- | --- | --- |
|
||||
| `id` | `u32` | Seeds the smoke's noise. |
|
||||
| `ax` | `f64` | |
|
||||
| `ay` | `f64` | |
|
||||
| `az` | `f64` | |
|
||||
| `bx` | `f64` | |
|
||||
| `by` | `f64` | |
|
||||
| `bz` | `f64` | |
|
||||
| `born` | `f64` | When it was made, in the `clock` of `set-smoke` (ticks). |
|
||||
| `life` | `f32` | How long it lasts, in the same ticks (1 to 72000). |
|
||||
| `radius-start` | `f32` | Radius of the tube in blocks at birth and at the end of its life. |
|
||||
| `radius-end` | `f32` | |
|
||||
| `density` | `f32` | How thick it is at the core at birth: extinction per block (0 to 8). |
|
||||
| `heat` | `f32` | How hot it glows at birth, 0 soot to 1 white hot; it cools in seconds. |
|
||||
| `soot` | `f32` | How dark it is, 0 white vapour to 1 black soot. |
|
||||
| `rise` | `f32` | Blocks per second it floats up (negative sinks). |
|
||||
| `clear` | `f32` | Radius in blocks of the clear tunnel it leaves in fog and cloud, filling back in over `life` (0 none). |
|
||||
|
||||
| Function | Signature | What it does |
|
||||
| --- | --- | --- |
|
||||
| `set-hud` | `func(shapes: list<shape>)` | Replaces the mod's HUD shapes: up to 1024, drawn every frame in order over the HUD (after the hotbar, under chat and screens), hidden with the HUD (F1). An empty list removes them. |
|
||||
@@ -647,6 +670,7 @@ The HD lighting (AirDef fork): the world lit per pixel by the mods' lights, in h
|
||||
| `set-lights` | `func(lights: list<point-light>)` | Replaces the mod's lights: up to 512, interpolated per id between the last two calls. |
|
||||
| `set-lighting` | `func(lighting: lighting)` | Switches the HD lighting on or off for this mod's world, with its exposure and bloom; off, the world is drawn as the game draws it. |
|
||||
| `set-time-override` | `func(day-time: option<u64>)` | Shows the world at this time of day (AirDef fork): the sky, the sun and moon, the sky light and the fog, as `day-time` ticks (24000 a day, as `clock`). Only what the player sees changes: the world's own clock, its saves and its rules do not. None shows the world's own time. |
|
||||
| `set-smoke` | `func(clock: f64, segments: list<smoke-segment>) -> bool` | Replaces the mod's smoke: up to 4096 segments, `clock` being now in ticks (the game shows the age between the last two calls). Returns whether the HD renderer draws them; when it does not (the effects preset, HD smoke off), the mod draws its own smoke. |
|
||||
|
||||
## `events`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user