FXAA TSL factory — NodeMaterial counterpart to the GLSL3 shader
in shaders.ts.
Implements the same FXAA Quality preset as the GLSL version:
Rec.601 luma → local-contrast early-out → diagonal-tap sub-pixel
blend → edge-direction step → 0.5-pixel mix.
Reads uInput (the LDR texture) and uResolution. Uniforms are
threaded in via the factory parameter so the WebGL fallback and
the WebGPU path share one source of state.
FXAA TSL factory — NodeMaterial counterpart to the GLSL3 shader in
shaders.ts.Implements the same FXAA Quality preset as the GLSL version: Rec.601 luma → local-contrast early-out → diagonal-tap sub-pixel blend → edge-direction step → 0.5-pixel mix.
Reads
uInput(the LDR texture) anduResolution. Uniforms are threaded in via the factory parameter so the WebGL fallback and the WebGPU path share one source of state.