God Rays

A software-rendered port of the paper-design god-rays shader, evaluating the GLSL fragment shader per pixel in WebAssembly. Both versions use the library's "Default" preset, accept the same complete uniform set, and publish a canonical KTX2 frame.

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):