Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Compute the effective render-target size given current SSAA settings.

      When SSAA is enabled, the off-screen render target runs at ssaaMultiplier × the screen size in each axis (the post-processing stack samples and downsamples back to the screen size). When SSAA is disabled, the on-screen size is used directly. Width and height are rounded to integers in both cases — render targets must be integral.

      Parameters

      • renderSize: RenderSize

        The on-screen render size in pixels.

      • ssaaEnabled: boolean

        Whether SSAA is currently on.

      • ssaaMultiplier: number

        The SSAA upscale factor (e.g. 1.5, 2, 4). Ignored when ssaaEnabled is false.

      Returns RenderSize

      Integer { width, height } for the off-screen render target.