Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class PostProcessPassGL

    Handles post-processing blit for WebGL1 and WebGL2. Reads from the HDR framebuffer texture and writes tone-mapped, gamma-corrected output to the default (canvas) framebuffer.

    Index
    • Blits the HDR texture to the canvas framebuffer.

      Parameters

      • gl: WebGLRenderingContext | WebGL2RenderingContext
      • hdrTexture: WebGLTexture
      • group: PostProcessingGroup
      • bloomTexture: WebGLTexture | null = null
      • hbaoTexture: WebGLTexture | null = null

      Returns void