Skip to content

Commit

Permalink
add missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed Feb 10, 2024
1 parent 28cc3d1 commit 32216df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/jsm/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 32216df

Please sign in to comment.