Water

Caustic water-surface ripples with subtle refraction

Installation

$ pnpm dlx shadcn@latest add @remocn/shader-water

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { ShaderWater } from "@/components/remocn/shader-water";
 
const ShaderWaterScene = () => (
  <ShaderWater speed={1} waves={0.3} caustic={0.08} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="ShaderWater"
    component={ShaderWaterScene}
    durationInFrames={150}
    fps={30}
    width={1280}
    height={720}
  />
);

Credits

Shader by paper-design/shaders.