Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
What is a simple way to simulate flashing candle / torch / fire light?
I'm not asking about animating the flames, I'm only interested in the light surrounding the fire, similar to what this device does: https://www.youtube.com/watch?v=dPsVr4pU8Tg
return clamp(0,1, lastIntensity+(rand()-.3)/100)
adjust parameters as needed
Required, but never shown