The Mesh Gradient shader creates a flowing composition of color spots that move along distinct trajectories and are transformed by organic distortion. It supports up to 10 colors and provides controls for distortion, swirl effects, and grain overlays.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Parameters
Array of color hex strings for the gradient spots. Supports up to 10 colors. Each color creates a moving spot that blends with others.
Power of organic noise distortion applied to the gradient (0 to 1). Higher values create more wavy, organic movement.
Power of vortex distortion effect (0 to 1). Creates a rotational swirl around the center of the gradient.
Strength of grain distortion applied to shape edges (0 to 1). Adds texture to the boundaries between color spots.
Post-processing black/white grain overlay strength (0 to 1). Adds a film grain effect over the entire gradient.
Animation speed multiplier. Set to 0 to pause animation and use manual frame control.
Manual frame counter for when speed is 0. Useful for scrubbing through the animation.
Common Sizing Parameters
How to fit the shader into the canvas dimensions.
Overall zoom level of the graphics (0.01 to 4).
Overall rotation angle in degrees (0 to 360).
Horizontal offset of the graphics center (-1 to 1).
Vertical offset of the graphics center (-1 to 1).
Reference point for positioning world width in the canvas (0 to 1).
Reference point for positioning world height in the canvas (0 to 1).
Presets
The component comes with several built-in presets:Default
Ink
Purple
Beach
Technical Details
- Max Colors: 10
- Animation: Continuous flowing motion of color spots
- Performance: Optimized for real-time rendering
- Coordinates: Uses object UV coordinates with sizing transforms
