God Rays

A software-rendered port of the paper-design god-rays shader, evaluating the GLSL fragment shader per pixel in WebAssembly. Both use the library's "Default" preset.

Straight port (line-for-line GLSL translation, libm pow/atan2):

Optimized port (polynomial pow/atan2, hoisted angle, saturated-mix branch skip — output within 1/255 per channel of the straight port):