diff --git a/examples/jsm/renderers/common/Renderer.js b/examples/jsm/renderers/common/Renderer.js index 61f31551a28aca..01167d43b7bd82 100644 --- a/examples/jsm/renderers/common/Renderer.js +++ b/examples/jsm/renderers/common/Renderer.js @@ -621,6 +621,12 @@ class Renderer { } + getActiveViewport( target ) { + + return this._activeCanvas.getViewport( target ); + + } + setViewport( x, y, width, height, minDepth = 0, maxDepth = 1 ) { return this._defaultCanvasRenderTarget.setViewport( x, y, width, height, minDepth, maxDepth );