Light & material

A surface normal, a light direction and a dot product. That is all lighting is, and these four go from that single line to holographic foil, brushed metal and an aurora, without a single texture.

New to shaders? Read Rive Shaders Explained →

Hue driven by the angle you view it from, plus fine etched lines. The card's foil.

Light

A normal, a light direction, a dot product. That is all lighting is.

Metal

Noise stretched along one axis, lit by a moving band. Brushed steel.

Aurora

A curtain of noise, masked by height, coloured green to violet.

Free Rive file

Noise, as a Rive file, on us

The Noise shader with the GPU Canvas node wired and the WGSL inside. Drop it into any Rive file and see how a shader lives there.

The other 27, in the course

Every shader here, as a ready-to-drop Rive file

Play with all of them here. The library file, every shader on its own artboard, comes with the Scripting Course, next to the lessons and the Space Game it belongs to.