If anyone is interested, I made an implementation of this (based on the GPU Gems article) in Lua using the LÖVE framework that adds a bunch of effects like reflections, normal mapping and more.
I am interested. Thank you very much. Out of curiosity, why LÖVE? For thr added features?
I'm just a big fan of Lua for its simplicity and power, especially LuaJIT. LÖVE makes excellent use of it.
macOS?
No.
It was fairly straightforward to get the .love running on macOS. I grabbed Nuklear[1] and LÖVE-Nuklear[2], built [2] on macOS (had to point at Nuklear's header), dropped the .so in your /bin, a one-line edit to main.lua, repackaged, et voila!
Check my profile and drop me a line if you'd like.
macOS is a PITA, maybe with MetalVK or ANGLE there could be less pain; but OpenGL is in a sad state on macOS ever since they started becoming territorial about GPU APIs.