Skip to main content
The Grain Gradient shader creates multi-color gradients with grainy, noise-textured distortion available in 7 different animated abstract forms. Perfect for creating organic, textured backgrounds with a film-like quality.

Usage

Parameters

string
default:"'#000000'"
Background color in hex format.
string[]
default:"['#7300ff', '#eba8ff', '#00bfff', '#2a00ff']"
Array of gradient colors in hex format. Supports up to 7 colors.
string
default:"'corners'"
Shape type for the gradient animation. Available options:
  • 'wave' - Flowing sine wave pattern
  • 'dots' - Animated grid of dots
  • 'truchet' - Truchet tile pattern
  • 'corners' - Corner-based organic shapes
  • 'ripple' - Concentric ripple effect
  • 'blob' - Moving blob shapes
  • 'sphere' - 3D sphere with lighting
number
default:"0.5"
Color transition sharpness (0 to 1). 0 = hard edge, 1 = smooth gradient.
number
default:"0.5"
Distortion between color bands (0 to 1). Controls how much the grain affects color boundaries.
number
default:"0.25"
Grainy noise overlay strength (0 to 1). Adds texture throughout the gradient.
number
default:"1"
Animation speed multiplier.

Common Sizing Parameters

'none' | 'contain' | 'cover'
default:"'cover'"
How to fit the shader into the canvas dimensions.
number
default:"1"
Overall zoom level (0.01 to 4).
number
default:"0"
Rotation angle in degrees (0 to 360).
number
default:"0"
Horizontal offset (-1 to 1).
number
default:"0"
Vertical offset (-1 to 1).

Presets

Default (Corners)

Wave

Dots

Truchet

Ripple

Blob

Technical Details

  • Max Colors: 7
  • Shapes: 7 different animated patterns
  • Noise: Combines simplex noise with FBM (Fractal Brownian Motion)
  • Grain: Uses texture-based randomizer for consistent grain patterns
  • Coordinates: Uses both pattern UV and object UV depending on shape
  • Special Note: Grains are calculated using screen coordinates, so they don’t scale with the shader’s scale/fit properties
The shader generates animated shapes using various algorithms (sine waves, procedural patterns, blob motion), applies multi-octave noise for grain texture, and maps colors with configurable softness and distortion.