Skip to main content
The Static Mesh Gradient creates a multi-point gradient with up to 10 color spots, enhanced by two-direction wave distortion, adjustable blend sharpness, and grain controls. Unlike the animated Mesh Gradient, this shader is designed for static or controlled positioning of color spots.

Usage

Parameters

string[]
default:"['#ffad0a', '#6200ff', '#e2a3ff', '#ff99fd']"
Array of gradient colors in hex format. Supports up to 10 colors. Each color becomes a spot in the mesh.
number
default:"2"
Color spots placement seed (0 to 100). Different values create different arrangements of color spots.
number
default:"1.0"
Strength of sine wave distortion along X axis (0 to 1). Creates horizontal wave effects.
number
default:"0.6"
Phase offset applied to the X-axis wave (0 to 1). Shifts the horizontal wave pattern.
number
default:"1.0"
Strength of sine wave distortion along Y axis (0 to 1). Creates vertical wave effects.
number
default:"0.21"
Phase offset applied to the Y-axis wave (0 to 1). Shifts the vertical wave pattern.
number
default:"0.93"
Blending behavior between colors (0 to 1). 0 = hard stripes, 0.5 = smooth, 1 = gradual blend.
number
default:"0"
Strength of grain distortion applied to shape edges (0 to 1).
number
default:"0"
Post-processing black/white grain overlay (0 to 1).
number
default:"0"
Animation speed multiplier. Default is 0 for static appearance.

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:"270"
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

Sea

1960s

Sunset

Technical Details

  • Max Colors: 10
  • Animation: Designed for static use (speed=0 by default)
  • Wave Distortion: Independent X and Y wave controls
  • Blending: Variable mixing modes from hard edges to smooth gradients
  • Coordinates: Uses object UV coordinates
The shader positions color spots based on a seed value, applies sine wave distortion in both X and Y directions, then blends colors with configurable sharpness using inverse distance weighting.