From 32216dff623931188bad4729889dea544cf04894 Mon Sep 17 00:00:00 2001 From: aardgoose Date: Sat, 10 Feb 2024 09:43:47 +0000 Subject: [PATCH] add missing method --- examples/jsm/renderers/common/Renderer.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 );