Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "shader-god-rays",
"title": "Shader God Rays",
"description": "Volumetric light rays radiating from an off-screen source.",
"dependencies": ["@paper-design/shaders-react"],
"files": [
{
"path": "registry/remocn/shader-god-rays/index.tsx",
"content": "\"use client\";\n\nimport { GodRays, type GodRaysProps } from \"@paper-design/shaders-react\";\nimport { useCallback, useState } from \"react\";\nimport {\n continueRender,\n delayRender,\n useCurrentFrame,\n useVideoConfig,\n} from \"remotion\";\n\nconst NEUTRAL_COLORS = [\"#5a5a7e\", \"#8a8a95\", \"#ffffff\", \"#3a3a5c\"];\n\nexport interface ShaderGodRaysProps\n extends Omit<GodRaysProps, \"frame\" | \"ref\"> {}\n\nexport function ShaderGodRays({\n speed = 1,\n colorBack = \"#12121a\",\n colorBloom = \"#3a3a5c\",\n colors = NEUTRAL_COLORS,\n intensity = 0.8,\n density = 0.3,\n bloom = 0.4,\n className,\n ...rest\n}: ShaderGodRaysProps) {\n const frame = useCurrentFrame();\n const { fps, width, height } = useVideoConfig();\n\n const [handle] = useState(() => delayRender(\"shader-god-rays\"));\n const gate = useCallback(\n (element: HTMLDivElement | null) => {\n if (!element) return;\n requestAnimationFrame(() =>\n requestAnimationFrame(() => continueRender(handle)),\n );\n },\n [handle],\n );\n\n return (\n <div\n ref={gate}\n className={className}\n style={{ position: \"absolute\", inset: 0 }}\n >\n <GodRays\n speed={0}\n frame={(frame / fps) * speed * 1000}\n colorBack={colorBack}\n colorBloom={colorBloom}\n colors={colors}\n intensity={intensity}\n density={density}\n bloom={bloom}\n fit=\"cover\"\n width={width}\n height={height}\n {...rest}\n />\n </div>\n );\n}\n",
"type": "registry:component",
"target": "components/remocn/shader-god-rays.tsx"
}
],
"type": "registry:component"
}