Loading shader
A softly uneven wall in the dark, lit by a lamp that follows the pointer. The light rakes across the bumps and fades with distance.
interactive, light, MIT, v1.0.0
This is the code for the shader exactly as it is set above. It updates as you change the controls.
Props of the PointerGlow React component. The JavaScript version takes the same names in its settings object.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | ["#08090c", "#7aa7ff", "#ffe6c7"] | Wall in shadow, Lamp light, Lamp core. Hex colours. |
| speed | number | 1 | Speed. Range 0 to 3. |
| scale | number | 1 | Higher makes the bumps finer. Range 0.4 to 3. |
| intensity | number | 1 | Reach. Range 0.3 to 3. |
| seed | number | 52 | Seed. Range 0 to 999. |
| paused | boolean | false | Freeze the animation on the current frame. |
| maxDpr | number | 2 | Upper bound for devicePixelRatio. Lower it to save GPU time. |
| className | string | none | Classes for the canvas, for example to position it. |
| style | CSSProperties | none | Inline styles for the canvas. |
Light. Cost 1 of 3.
A few noise lookups per pixel. Comfortable as a full-page background on phones and older laptops.