Skip to content

Type Alias: ViewportSource ​

ts
type ViewportSource = Pick<
  WebGLRenderer,
  'getCurrentViewport' | 'getPixelRatio' | 'getRenderTarget'
>;

Experimental

The subset of WebGLRenderer that syncViewportUniforms reads (fakeable in tests).

Released under the MIT License.