Skip to content
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
index.html Initial commit Dec 29, 2018

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)
You can’t perform that action at this time.