Smoke
Realistic fluid smoke simulation with vorticity dynamics
Realistic fluid smoke simulation with vorticity dynamics
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colorA | color | #fc83f9 | Color of fresh smoke |
| colorB | color | #c21c79 | Color smoke transitions to as it ages |
| emitFrom | position | {"x":0.5,"y":1} | The emission source point |
| direction | range | 0 | Emission direction (0 = up, 90 = right, 180 = down, 270 = left) |
| speed | range | 20 | Emission velocity strength |
| spread | range | 60 | Emission cone angle in degrees |
| emitRadius | range | 0.08 | Size of the emission area |
| intensity | range | 1 | Smoke emission density |
| dissipation | range | 0.2 | How fast smoke fades over time |
| detail | range | 25 | Fine-scale swirling detail |
| gravity | range | 0.5 | Downward gravitational pull on smoke |
| colorDecay | range | 0.4 | How quickly smoke shifts from Color A to Color B |
| mouseInfluence | range | 0.1 | Strength of cursor influence |
| mouseRadius | range | 0.1 | Radius of cursor influence area |
| colorSpace | "linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch" | linear | Color space for color interpolation |
Usage
vue
<Shader>
<Smoke
:intensity="1"
/>
</Shader>