advanced

#28 Fire & Smoke

Procedural fire using noise and color ramp

Fire is built from scrolling noise: move the UV coordinates upward over time to simulate rising flames. Multiple octaves of noise at increasing frequency create turbulent detail. Map the noise intensity through a color ramp from black (base) through red, orange, yellow, to white (hottest). Adding a vertical falloff makes the flames taper upward naturally.

Key Concepts

Try this shader live in the Shader Sandbox editor with real-time preview.
Open in Sandbox

Source Code


    
← Previous Water & Waves Next → 3D Domain Repetition

All Tutorials