Small World Engine API Reference - v0.46.1
    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

    Constructors

    Methods

    Constructors

    Methods

    • Releases GPU resources.

      Parameters

      • gl: WebGLRenderingContext | WebGL2RenderingContext

      Returns void

    • Blits the HDR texture to the canvas framebuffer.

      Parameters

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

      Returns void