Ravine
A ray-marched flight down an endless monochrome canyon, its walls shaded by how far each ray had to travel
Customize
Props
21| Name | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Travel speed along the canyon floor. |
steps | number | 128 | Ray-march steps per pixel, 32 to 256. More steps resolve farther detail at GPU cost. |
stepScale | number | 0.5 | Fraction of the safe distance each step advances; lower is finer and darker. |
scale | number | 0.25 | Frequency of the terrain noise. |
height | number | 1 | Height multiplier of the terrain ridges. |
spread | number | 34 | How quickly the walls rise away from the centre line. |
wallCurve | number | 2.5 | Curve of the wall rise; higher keeps the floor flatter for longer. |
fade | number | 35 | Distance at which the canyon fades into the near colour. 0 disables. |
cameraHeight | number | 6 | Camera height above the floor. |
tilt | number | 0.05 | Camera pitch in radians; positive looks down. |
roll | number | 0.075 | Camera roll in radians. |
fov | number | 1 | Field of view multiplier. |
nearColor | string | "#000000" | Colour of near surfaces. |
farColor | string | "#ffffff" | Colour the tone ramps towards at grazing angles and far walls. |
brightness | number | 0.8 | Tone brightness multiplier. |
contrast | number | 1 | Tone contrast around the mid grey. |
grain | number | 0.005 | Micro-jitter on the march; adds a fine grain. |
paused | boolean | false | Freeze the animation. |
dpr | number | 1 | Upper device pixel ratio bound. |
className | string | — | Extra classes for the root element. |
children | ReactNode | — | Content layered above the effect. |
speednumberTravel speed along the canyon floor.
1stepsnumberRay-march steps per pixel, 32 to 256. More steps resolve farther detail at GPU cost.
128stepScalenumberFraction of the safe distance each step advances; lower is finer and darker.
0.5scalenumberFrequency of the terrain noise.
0.25heightnumberHeight multiplier of the terrain ridges.
1spreadnumberHow quickly the walls rise away from the centre line.
34wallCurvenumberCurve of the wall rise; higher keeps the floor flatter for longer.
2.5fadenumberDistance at which the canyon fades into the near colour. 0 disables.
35cameraHeightnumberCamera height above the floor.
6tiltnumberCamera pitch in radians; positive looks down.
0.05rollnumberCamera roll in radians.
0.075fovnumberField of view multiplier.
1nearColorstringColour of near surfaces.
"#000000"farColorstringColour the tone ramps towards at grazing angles and far walls.
"#ffffff"brightnessnumberTone brightness multiplier.
0.8contrastnumberTone contrast around the mid grey.
1grainnumberMicro-jitter on the march; adds a fine grain.
0.005pausedbooleanFreeze the animation.
falsedprnumberUpper device pixel ratio bound.
1classNamestringExtra classes for the root element.
—childrenReactNodeContent layered above the effect.
—