Skip to content
FreeBackgroundsWebGL

Prism Light

A real 3D scene in WebGL2: a glass prism (beveled mesh with fresnel and refraction) on a reflective vinyl floor. A light orb follows your cursor and fires a volumetric beam; the spectrum fans out by Snell's law, one ray per color, and lands on the wall and floor with its caustic. The camera parallaxes with the cursor.

Plan
Free · MIT
Dependencies
React only
Props
8 (7 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

All the light, in color

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
dispersionnumber1How wide the spectrum fans out (0 to 2).
intensitynumber1Brightness of the light and the spectrum (0 to 1.5).
glownumber1Soft glow around the light (0 to 2).
beamWidthnumber2.5Thickness of the white beam, in px.
tintstring"#bcd9ff"Tint of the prism's glass.
autoplaybooleantrueWith no cursor, the light orb roams the scene on its own.
interactivebooleantrueWhen true, the orb follows the cursor and changes the beam's angle.
childrenReactNode""Content (e.g. a headline) lit by the colors of the spectrum.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { PrismLight } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
WebGL 2
in the browser
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A perspective grid that scrolls endlessly toward a horizon with a muted sun; the cursor shifts the horizon and holding down speeds it up.

    Backgrounds

  • A water surface with WebGL ripples.

    Backgrounds

  • A silk fabric that ripples slowly, with an anisotropic thread sheen that shifts with the light and follows the cursor.

    Backgrounds