Re:The Book of Shaders
by softfalcon on Friday June 12, 2020 @12:27PM
(#23500830)
It could definitely be in an infinite loop if it's running a webgl context.
Many (including myself) have tied into window.requestAnimationFrame(...) recursively forever.
This lets the page breathe, but always call back into your main game loop to update the webgl render context/canvas.
Perhaps all the text is rendered via JS and re-rendering in an infinite loop where the CSS switches the padding of the div surrounding the text back and forth by ~5px at each point in the loop?