Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Variable GLSL_ERF_FUNCTIONSConst

    GLSL_ERF_FUNCTIONS: string = ...

    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.