API

Function getEffectiveAspectRatio

  • Returns the render-target aspect ratio adjusted for the camera's normalized viewport, or the raw ratio if none.

    Parameters

    • camera: Camera | null | undefined
    • targetWidth: number
    • targetHeight: number

    Returns number