Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

Manual reference: <Environment portals> and FogVolume's soft and taper (tools/manual-ref.sh gen)

shinyobjectzeb5ce854cadd
diff --git a/docs/manual/reference/sdk/3d.md b/docs/manual/reference/sdk/3d.md
index 21353a5e..1dba3334 100644
--- a/docs/manual/reference/sdk/3d.md
+++ b/docs/manual/reference/sdk/3d.md
@@ -1533,6 +1533,7 @@ The props of [`Entity`](#entity), tabled there.
| `rotation` | `number` | a turn about the vertical axis, in radians, for both the light and the sky: puts the sun where the shot wants it |
| `background` | `boolean` | draw the panorama as the sky behind everything (off by default: light only) |
| `backgroundIntensity` | `number` | the sky's brightness, when it should differ from the light's (`intensity` by default) |
+| `portals` | `[number, number, number][][]` | the openings the sky lights a room through (a skylight, a window), each its four corners in order round it, in metres (a rectangle or any parallelogram). Traced lighting (Solari, the path tracer) samples the sky through each as it samples a lamp, so a room lit through a small opening gets that light smooth and whole, where rays bounced at random find it too rarely for the denoiser to keep (photo 5's hall: half its floor's sky light). Light passes both ways; up to 8; the first frame's hold. Raster lighting doesn't read them |
### `FireProps`
@@ -1603,6 +1604,8 @@ type FogFalloff = | { Linear: { start: number; end: number } } | { Exponential:
| `scattering` | `number` | how much light it throws back toward the eye (0.3 by default): higher reads as bright dust or mist |
| `anisotropy` | `number` | how far forward it scatters, -1 to 1 (0.5 by default): near 1 the shafts glow when you look toward the light |
| `falloff` | `number` | how fast it thins going up, per metre from the box's floor (0 by default: even throughout): 0.5 is a ground fog that's a third as thick two metres up. A box wide and tall with a falloff is height fog. Only <VolumetricFog mode="froxel"> draws it; the march draws the box evenly |
+| `soft` | `number` | how far in from each face its density ramps up, as a share of the box's half-size, 0 to 1 (0 by default: a hard box): 0.5 and up hides a small volume's edges (steam, a smoke column). Only <VolumetricFog mode="froxel"> |
+| `taper` | `number` | how much narrower its floor is than its top, 0 to 1 (0 by default: a box): 0.7 is a plume rising off a tank, widening as it climbs. Only <VolumetricFog mode="froxel"> |
| `density_texture` | `string` | Bevy's density_texture: a 3D.ktx2 image in the media folder whose values scale the density through the box (a cloud, a bunny of smoke); the box draws evenly without one. Only the march draws it |
### `FramePassProps`
diff --git a/docs/manual/reference/sdk/pbr.md b/docs/manual/reference/sdk/pbr.md
index fc12a9aa..06b1a318 100644
--- a/docs/manual/reference/sdk/pbr.md
+++ b/docs/manual/reference/sdk/pbr.md
@@ -399,6 +399,8 @@ The props of [`ExtendedMaterial`](#extendedmaterial), tabled there.
| `scattering` | `number` | how much light it throws back toward the eye (0.3 by default): higher reads as bright dust or mist |
| `anisotropy` | `number` | how far forward it scatters, -1 to 1 (0.5 by default): near 1 the shafts glow when you look toward the light |
| `falloff` | `number` | how fast it thins going up, per metre from the box's floor (0 by default: even throughout): 0.5 is a ground fog that's a third as thick two metres up. A box wide and tall with a falloff is height fog. Only <VolumetricFog mode="froxel"> draws it; the march draws the box evenly |
+| `soft` | `number` | how far in from each face its density ramps up, as a share of the box's half-size, 0 to 1 (0 by default: a hard box): 0.5 and up hides a small volume's edges (steam, a smoke column). Only <VolumetricFog mode="froxel"> |
+| `taper` | `number` | how much narrower its floor is than its top, 0 to 1 (0 by default: a box): 0.7 is a plume rising off a tank, widening as it climbs. Only <VolumetricFog mode="froxel"> |
| `density_texture` | `string` | Bevy's density_texture: a 3D.ktx2 image in the media folder whose values scale the density through the box (a cloud, a bunny of smoke); the box draws evenly without one. Only the march draws it |
### `GridExtensionProps`