NatureGL Skyv1.1.0

Start here

The demo

The full demo is an island and open sea under the live sky, with a fly camera and a console that exposes every parameter. It runs from the package with npm run dev, and in your browser right here.

Runs WebGL2 in this page · starts on marine
The same build as npm run build:demo. Drag to look, use W A S D to fly, and press ? for every shortcut.

#Controls

#Camera

InputAction
DragLook around
W A S D / arrowsFly
R / FClimb / descend
Shift (held)Fly 6× faster
Alt + scrollZoom the lens
OToggle fly / orbit camera

#Sky

InputAction
Shift + dragMove the sun
ScrollRaise / sink the sun
1 – 9, 0Jump to a sky preset
[ ]Previous / next cloud form
XRoll a random sky
TRun the day/night clock

#Rendering

InputAction
QCycle quality tier
YTemporal reconstruction on / off
BBloom on / off
GGod rays on / off
NPost pass on / off (plain renderer.render)

#Capture and sharing

InputAction
PSave this frame as PNG
Shift + PRender a 4K poster
VRecord a WebM clip
CCopy a link to this sky
JCopy the preset JSON
M / K / HMore controls / fold the console / hide the interface

#Camera jumps

More (M) opens the clock and atmosphere sliders and five camera jumps. Each one exercises a different part of the renderer.

#Automation contract

The demo exposes window.__pro, the same contract every NatureGL demo uses. npm test and the docs' media capture drive the demo through it.

js
window.__pro = {
  ready: true,                 // after the first frames rendered
  system: sky,                 // the SkySystem
  presets: ['clear', 'partlyCloudy', /* … */],
  qualities: ['low', 'medium', 'high', 'ultra'],
  applyPreset(name) {},        // snaps + frames the camera for the preset
  setQuality(level) {},
  // demo extras
  camera, cam, view(name), setPost(on), renderFrame(),
};