AutoMovie API
    Preparing search index...

    Function createViewerViewportResize

    • Synchronize a perspective viewport with its CSS size and selected pixel ratio. The renderer updates its drawing buffer without changing authored CSS layout. The returned function reports a changed raster or projection so the caller can redraw its original producer at the current completed time.

      Parameters

      • renderer: Pick<THREE.WebGLRenderer, "getSize" | "getPixelRatio" | "setDrawingBufferSize">
      • camera: PerspectiveCamera

      Returns (width: number, height: number, pixelRatio: number) => boolean