A WebGL pulsing glow effect with halftone rendering.
npx atelier-ui add halftone-glowimport { HalftoneGlow } from "@/components/HalftoneGlow"
import { Canvas } from '@react-three/fiber'<Canvas>
<HalftoneGlow />
</Canvas>import type { Texture } from "three"
function Scene() {
const [texture, setTexture] = useState<Texture | null>(null)
return (
<Canvas>
<HalftoneGlow onTextureReady={setTexture} />
<mesh>
<sphereGeometry />
<MeshTransmissionMaterial buffer={texture ?? undefined} />
</mesh>
</Canvas>
)
}| Name | Type | Default | Description |
|---|---|---|---|
| speed | number | 0.9 | Pulse speed. |
| blurAmount | number | 0.47 | Amount of blur. |
| edgeSize | number | 1 | Thickness of the edge glow. |
| edgeDistortion | number | 0.02 | How much noise warps the edge glow. |
| ringDistortion | number | 0.1 | How much noise warps the ring pulse. |
| edgeColor | string | "#4599ff" | Color of the edge glow. |
| ringColor | string | "#4599ff" | Color of the ring pulse. |
| onTextureReady | (texture) => void | undefined | Returns the rendered effect as a texture. |
Aura Financial
Re-creation of the original hero effect.
React Three Fiber
React renderer for Three.js.
Drei
React Three Fiber utilities.