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
scrolling noise
fire color ramp
vertical falloff
turbulence layers
Try this shader live in the Shader Sandbox editor with real-time preview.