Raymarched volumetric clouds. The camera flies forward through layered FBM density; sunlight scatters through every step and god-rays peek through breaks.
import CloudFlythrough from '@crazygl/hero-cloud-flythrough';
export default function Hero() {
return (
<CloudFlythrough
heading="Above the deck."
density={1}
speed={0.6}
sunStrength={1}
/>
);
}skyTop / skyBottom (gradient behind the clouds), cloudColor, shadowColor (lit underside), sunColor.density (cloud coverage), speed (fly speed), sunStrength (god-ray / halo strength).npm install @crazygl/hero-cloud-flythroughThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import CloudFlythrough from '@crazygl/hero-cloud-flythrough';
export default function Landing() {
return (
<CloudFlythrough />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import CloudFlythrough from '@crazygl/hero-cloud-flythrough';
export default function Page() {
return (
<section>
<CloudFlythrough
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}