Toggle Sidebar B
Light & dark mode D

Fog

Fog that fills the screen and interacts with the mouse

Fog that fills the screen and interacts with the mouse

Props

PropTypeDefaultDescription
colorAcolor#e0e0e0Primary fog color
colorBcolor#888888Secondary fog color - creates variation across the field
seedrange0Deterministic starting pattern - different seeds produce different fog configurations
speedrange1Simulation speed multiplier
turbulencerange1Ambient motion strength
detailrange15Fine-scale swirling structure - higher values produce more intricate wisps and vortices
blendingrange0.3How much the two colors blend together - 0 behaves like oil & water (colors stay distinct with sharp boundaries), 1 behaves like food coloring (colors fully mix)
mouseInfluencerange0.1Strength of cursor influence - move the cursor to push fog
mouseRadiusrange0.1Radius of cursor influence area
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for color interpolation

Usage

vue
<Shader>
  <Fog />
</Shader>