Dark Cloudy Shader
Dark, moody, cloudy noise shader.
Dark, moody, cloudy noise shader.
npm install three @types/three @react-three/fibernpx shaderz addSelect "Dark Cloudy" from the interactive list.
import DarkCloudy from '@/components/shaders/dark-cloudy/Hero';
export default function App() {
return (
<div style={{ width: '100%', height: '500px' }}>
<DarkCloudy />
</div>
);
}To use the shader as a background, position it absolutely within a relative container and place your content on top using z-index.
import DarkCloudy from '@/components/shaders/dark-cloudy/Hero';
export default function HeroSection() {
return (
<div className="relative w-full h-screen overflow-hidden">
{/* Shader Background */}
<div className="absolute inset-0 z-0">
<DarkCloudy />
</div>
{/* Content Layer */}
<div className="relative z-10 flex flex-col items-center justify-center h-full text-white">
<h1 className="text-6xl font-bold">Your Content Here</h1>
</div>
</div>
);
}Alternatively, copy the component code directly into your project at components/shaders/dark-cloudy/Hero.tsx
'use client';
import React from 'react';
import DarkCloudy from './DarkCloudy';
const Hero = () => {
return (
<div className="absolute inset-0 w-full h-full bg-black overflow-hidden">
<DarkCloudy
speed={0.7}
scale={1.5}
color="#0a192f"
noiseIntensity={0.2}
rotation={-0.5}
/>
</div>
);
};
export default Hero;