Mesh Gradient

WebGL mesh gradient backdrop driven per-frame for deterministic Remotion renders

Installation
$ pnpm dlx shadcn@latest add @remocn/shader-mesh-gradient

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { ShaderMeshGradient } from "@/components/remocn/shader-mesh-gradient";
 
const ShaderMeshGradientScene = () => (
  <ShaderMeshGradient speed={1} distortion={0.6} swirl={0.1} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="ShaderMeshGradient"
    component={ShaderMeshGradientScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);

Presets

Ready-made looks, each a standalone registry item that pulls in shader-mesh-gradient as a dependency. Install one and drop it in like the base shader. Props you pass override the preset, and speed scales the preset's own pace instead of replacing it.

Violet dusk with coral and peach light drifting through deep indigo.

shader-mesh-gradient-dusk

Bright aqua and teal shallows with a deep-blue undertow.

shader-mesh-gradient-lagoon

Warm peach and cream glow with a whisper of film grain.

shader-mesh-gradient-peach

Cyan and violet ribbons swirling out of a near-black sky.

shader-mesh-gradient-aurora

Soft lilac and pink haze with grain-softened edges.

shader-mesh-gradient-lavender

Molten orange and amber pooling in dark oxblood.

shader-mesh-gradient-ember

Airy mint and sky-blue pastel wash around a deeper green core.

shader-mesh-gradient-mint

Night-purple field lit by a warm coral sunset glow.

shader-mesh-gradient-synthwave

Monochrome ink folds in charcoal and silver with grain.

shader-mesh-gradient-ink
import { ShaderMeshGradientDusk } from "@/components/remocn/shader-mesh-gradient-dusk";
 
export const Background = () => <ShaderMeshGradientDusk />;

Credits

Shader by paper-design/shaders.