提交 bda7b63a 编写于 作者: M Mr.doob

Merge remote-tracking branch 'michaud/patch-1' into dev

...@@ -231,6 +231,11 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -231,6 +231,11 @@ THREE.WebGLRenderer = function ( parameters ) {
_gl.viewport( _viewportX, _viewportY, _viewportWidth, _viewportHeight ); _gl.viewport( _viewportX, _viewportY, _viewportWidth, _viewportHeight );
}; };
//reset the viewport to the current canvas size
this.resetViewport = function () {
this.setViewport( 0, 0, _canvas.width, _canvas.height );
}
this.setScissor = function ( x, y, width, height ) { this.setScissor = function ( x, y, width, height ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册