Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



9 Commits

Repository files navigation

WebGL Fire

This is a little WebGL demo of the fire effect described in How DOOM fire was done. The entire effect is computed on the GPU using shaders.


  • SPACE: Toggle pause
  • PgUp/PgDown: Adjust the burner temperature
  • Up/Down: Adjust oxygen level
  • +/-: Adjust animation speed
  • Period: Advance state one step forward while paused
  • a: Instantly advance simulation 1024 steps
  • c: Clear the fire state to zero
  • r: Reset the entire simulation (reinitialize WebGL state)