Overview
The Dither Shader component applies real-time ordered dithering effects to images, creating pixel art and retro aesthetics. It supports multiple dithering modes, color processing options, and customizable parameters.Usage
Props
Source image URL.
Size of the dithering grid cells.
Type of dithering pattern.
Color processing mode.
Invert the dithered output colors.
Pixelation multiplier (1 = no pixelation, higher = more pixelated).
Primary color for duotone mode.
Secondary color for duotone mode.
Custom color palette array for custom mode.
Brightness adjustment (-1 to 1).
Contrast adjustment (0 to 2, 1 = normal).
Background color behind the dithered image.
Object fit behavior.
Threshold bias for dithering (0 to 1).
Enable animation effect.
Animation speed (lower = slower).
Additional CSS classes for the container (use this to set size via Tailwind).