Mesh Gradient
WebGL mesh gradient backdrop driven per-frame for deterministic Remotion renders
Installation
$ pnpm dlx shadcn@latest add @remocn/shader-mesh-gradientUsage
// 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.
import { ShaderMeshGradientDusk } from "@/components/remocn/shader-mesh-gradient-dusk";
export const Background = () => <ShaderMeshGradientDusk />;Credits
Shader by paper-design/shaders.