Public uniforms table, same shape as MegaShaderMaterial.uniforms.
PrivateusePrivateusePrivateusePrivateusePrivatetonePrivatecapturePrivatecapturePrivaterebuildRe-run the TSL factory with the current feature flags and
tone-mapping mode. Called from the constructor and whenever a
toggle changes; mirrors the needsUpdate = true recompile the
GLSL wrapper triggers via define flips.
Enable/disable the RAW-HDR capture short-circuit. When on, the
fragment graph returns the post-bloom linear-HDR sample and skips
detector noise, EOG, tone mapping, vignette, and sRGB encoding —
matching the GLSL LUXAR_CAPTURE_RAW_HDR define exactly.
Toggling forces a TSL graph rebuild because the factory branches on this flag (see shader.tsl.ts). Cost is identical to toggling any other feature flag (bloom, vignette, …).
Enable/disable the linear-LDR capture short-circuit. When on, the
pipeline runs every enabled effect, EOG, and tone mapping but
skips the final linearToSRGB encoding — matches the GLSL
LUXAR_CAPTURE_LINEAR_LDR define exactly.
Mega-shader material rendered via TSL / NodeMaterial. The host uses this exactly like
MegaShaderMaterial: