GLSL implementation of erfPoly — float luxarErf(float x).
Inject once per shader (before main()); pure ALU, no exp, no
division, so it is safe on the hottest fragment paths.
NaN caveat: GLSL min/abs make no IEEE NaN guarantee, so
luxarErf(NaN) is implementation-defined on the GPU (the TS mirror
propagates NaN). Callers must sanitize upstream rather than rely on
NaN propagation through this function.
GLSL implementation of
erfPoly—float luxarErf(float x). Inject once per shader (beforemain()); pure ALU, no exp, no division, so it is safe on the hottest fragment paths.NaN caveat: GLSL
min/absmake no IEEE NaN guarantee, soluxarErf(NaN)is implementation-defined on the GPU (the TS mirror propagates NaN). Callers must sanitize upstream rather than rely on NaN propagation through this function.