Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useGlCanvas } from "@/components/ui/use-gl-canvas"const fragment = `#version 300 esprecision highp float;uniform float uTime;uniform vec2 uResolution;out vec4 fragColor;void main() { vec2 uv = gl_FragCoord.xy / uResolution; float w = sin(uv.x * 6.0 + uTime * 0.8) + cos(uv.y * 5.0 - uTime * 0.6); float glow = smoothstep(-1.0, 1.5, w); vec3 col = mix(vec3(0.15, 0.2, 0.55), vec3(0.9, 0.5, 0.7), glow); float a = 0.85; fragColor = vec4(col * a, a);}`;export default function AtmosphereDemo() { const { containerRef, canvasRef, active } = useGlCanvas({ fragment, uniforms: () => ({ uTime: { value: 0 }, uResolution: { value: [1, 1] }, }), }); return ( <div ref={containerRef} className='relative h-56 w-full max-w-md overflow-hidden rounded-xl border' > {active && <canvas ref={canvasRef} className='absolute inset-0 block' />} </div> )}