Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

@dioramajs/backgrounds/stars

Exports of @dioramajs/backgrounds/stars.

View as Markdown
import { default, POOL, SHOTS } from '@dioramajs/backgrounds/stars'

Constants

defaultA starfield on an empty element: stars in depth layers twinkle, drift slowly and lean with the pointer and the scroll, nearer ones more; a fast scroll stretches them into streaks, and now and then a shooting star crosses the sky. The warp motion flies through the field instead. One instanced draw over a flat sky color.
POOLStars the instance buffer holds: `count` draws the first of them.
SHOTSShooting star slots, before the stars in the buffer.