Run the full pipeline: scene → HDR → (bloom) → mega-shader →
(FXAA) → finalTarget.
applyFxaa = true: mega-shader writes to ldrTarget, FXAA reads
ldrTarget and writes to finalTarget.
applyFxaa = false: mega-shader writes directly to finalTarget.
finalTarget = null: write to the canvas backbuffer.
The capture paths use applyFxaa = false + an explicit target so
they can read the post-tone-mapping LDR buffer without an FXAA
pass between mega-shader and readback.
Run the full pipeline: scene → HDR → (bloom) → mega-shader → (FXAA) → finalTarget.
applyFxaa = true: mega-shader writes to ldrTarget, FXAA reads ldrTarget and writes tofinalTarget.applyFxaa = false: mega-shader writes directly tofinalTarget.finalTarget = null: write to the canvas backbuffer.The capture paths use
applyFxaa = false+ an explicit target so they can read the post-tone-mapping LDR buffer without an FXAA pass between mega-shader and readback.