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

    Module rendering/post-processing/bloom/shaders

    Bloom pyramid shader sources.

    Three fullscreen passes share a unit-triangle vertex shader:

    • threshold + 2× downsample → mip[0]
    • plain 2× downsample → mip[i+1]
    • 4-tap tent upsample → mip[i] (additive blend)

    Source-of-truth lives here so the eventual WebGPU/TSL port has one place to add NodeMaterial factories without touching chain.ts.

    BLOOM_VERTEX_SHADER
    BLOOM_THRESHOLD_FRAGMENT_SHADER
    BLOOM_DOWNSAMPLE_FRAGMENT_SHADER
    BLOOM_UPSAMPLE_FRAGMENT_SHADER
    BLOOM_THRESHOLD_SOURCE
    BLOOM_DOWNSAMPLE_SOURCE
    BLOOM_UPSAMPLE_SOURCE