Split the canvas into a fine grid and measure each pixel's distance from its cell centre. Compare it with a radius taken from the image's brightness at that spot, and dark areas get big dots, light areas small ones. Here the image is a sine that sweeps across.

New to shaders? Read Rive Shaders Explained →

Live
rive-shader-library.revIn the Scripting Course

Halftone on its own artboard in the library file, with the ShaderQuad node and the WGSL, Inputs for Dot, Speed. Copy the artboard into any Rive file.

More in Screen effects

See all →
Scanlines
Stars
Caustics
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.