- Docs
- Components
- Backgrounds
- Landscape
Landscape
A procedurally generated landscape scrolling toward the horizon
Customize
Props
37| Name | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | How fast the camera flies forward. |
altitude | number | 5.5 | Camera height above sea level. |
focal | number | 1.2 | Field of view, lower is more telephoto. |
pitch | number | 0 | Downward tilt of the camera, in radians. |
elevation | number | 3.2 | Height of the terrain. |
scale | number | 0.15 | Size of the landforms, lower is broader. |
detail | number | 1 | How much fine detail rides on top of the landforms. |
steps | number | 80 | Ray marching steps, higher is cleaner and slower. |
samples | number | 2 | Samples per pixel used to smooth the silhouette, 1 to 4. |
distance | number | 42 | How far the camera can see. |
fogStart | number | 22 | Distance at which the terrain starts dissolving into the sky. |
rampDistance | number | 35 | Distance over which the depth gradient completes. |
color | string | "#2e1065" | Colour of the nearest ground. |
midColor | string | "#0a0a0a" | Colour of the middle distance. |
farColor | string | "#d946ef" | Colour of the far ground. |
rimColor | string | "#f0abfc" | Colour of the light catching the ridges. |
rimPower | number | 4 | How tightly the rim clings to the crests. |
rimStrength | number | 1.2 | Brightness of the rim. |
ringColor | string | "#a855f7" | Colour of the scanner rings sweeping outward. |
ringSpacing | number | 0.5 | How close together the rings are. |
ringSpeed | number | 2.5 | How fast the rings travel. |
ringWidth | number | 0.04 | Thickness of each ring. |
ringStrength | number | 0.4 | Brightness of the rings. |
gain | number | 1 | Overall brightness before the highlight rolloff. |
grain | number | 0.05 | Film grain strength, 0 to 1. |
grainRate | number | 24 | Grain refreshes per second. |
vignette | number | 0.2 | Corner darkening, 0 to 1. |
backgroundColor | string | "#0a0a0a" | Sky colour, or "transparent" to show the page through. |
opacity | number | 1 | Master alpha. |
cursorInteraction | boolean | true | Let the pointer steer the camera. |
cursorSteer | number | 0.5 | How far the pointer swings the heading. |
paused | boolean | false | Freeze the animation. |
adaptiveQuality | boolean | true | Scale back resolution when the frame budget slips. |
targetFps | number | 60 | Frame rate the quality meter aims to hold. |
dpr | number | 1.75 | Upper device pixel ratio bound. |
className | string | - | Optional className applied to the root. |
children | ReactNode | - | Content layered above the terrain. |
speednumberHow fast the camera flies forward.
1altitudenumberCamera height above sea level.
5.5focalnumberField of view, lower is more telephoto.
1.2pitchnumberDownward tilt of the camera, in radians.
0elevationnumberHeight of the terrain.
3.2scalenumberSize of the landforms, lower is broader.
0.15detailnumberHow much fine detail rides on top of the landforms.
1stepsnumberRay marching steps, higher is cleaner and slower.
80samplesnumberSamples per pixel used to smooth the silhouette, 1 to 4.
2distancenumberHow far the camera can see.
42fogStartnumberDistance at which the terrain starts dissolving into the sky.
22rampDistancenumberDistance over which the depth gradient completes.
35colorstringColour of the nearest ground.
"#2e1065"midColorstringColour of the middle distance.
"#0a0a0a"farColorstringColour of the far ground.
"#d946ef"rimColorstringColour of the light catching the ridges.
"#f0abfc"rimPowernumberHow tightly the rim clings to the crests.
4rimStrengthnumberBrightness of the rim.
1.2ringColorstringColour of the scanner rings sweeping outward.
"#a855f7"ringSpacingnumberHow close together the rings are.
0.5ringSpeednumberHow fast the rings travel.
2.5ringWidthnumberThickness of each ring.
0.04ringStrengthnumberBrightness of the rings.
0.4gainnumberOverall brightness before the highlight rolloff.
1grainnumberFilm grain strength, 0 to 1.
0.05grainRatenumberGrain refreshes per second.
24vignettenumberCorner darkening, 0 to 1.
0.2backgroundColorstringSky colour, or "transparent" to show the page through.
"#0a0a0a"opacitynumberMaster alpha.
1cursorInteractionbooleanLet the pointer steer the camera.
truecursorSteernumberHow far the pointer swings the heading.
0.5pausedbooleanFreeze the animation.
falseadaptiveQualitybooleanScale back resolution when the frame budget slips.
truetargetFpsnumberFrame rate the quality meter aims to hold.
60dprnumberUpper device pixel ratio bound.
1.75classNamestringOptional className applied to the root.
-childrenReactNodeContent layered above the terrain.
-