This is an entry to the 2022 iteration of js1024 in an attempt to render some reflections, refraction and caustics in no more than 1024 bytes of JavaScript.
Hand coded and compressed with terser online, packed with regpack. The final size is 1022bytes.
There are two versions in this repository, one for the competition shim_canvas2d.html
. And one that is not competition legal but executes faster and scales up the canvas, js1k_final.html
.