|
@@ -14,10 +14,8 @@ import {
|
|
|
} from '../constants.js';
|
|
|
import { Frustum } from '../math/Frustum.js';
|
|
|
import { Matrix4 } from '../math/Matrix4.js';
|
|
|
-import { Vector2 } from '../math/Vector2.js';
|
|
|
import { Vector3 } from '../math/Vector3.js';
|
|
|
import { Vector4 } from '../math/Vector4.js';
|
|
|
-import { Color } from '../math/Color.js';
|
|
|
import { WebGLAnimation } from './webgl/WebGLAnimation.js';
|
|
|
import { WebGLAttributes } from './webgl/WebGLAttributes.js';
|
|
|
import { WebGLBackground } from './webgl/WebGLBackground.js';
|
|
@@ -375,14 +373,6 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
this.getSize = function ( target ) {
|
|
|
|
|
|
- if ( target === undefined ) {
|
|
|
-
|
|
|
- console.warn( 'WebGLRenderer: .getsize() now requires a Vector2 as an argument' );
|
|
|
-
|
|
|
- target = new Vector2();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
return target.set( _width, _height );
|
|
|
|
|
|
};
|
|
@@ -415,14 +405,6 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
this.getDrawingBufferSize = function ( target ) {
|
|
|
|
|
|
- if ( target === undefined ) {
|
|
|
-
|
|
|
- console.warn( 'WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument' );
|
|
|
-
|
|
|
- target = new Vector2();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
return target.set( _width * _pixelRatio, _height * _pixelRatio ).floor();
|
|
|
|
|
|
};
|
|
@@ -443,14 +425,6 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
this.getCurrentViewport = function ( target ) {
|
|
|
|
|
|
- if ( target === undefined ) {
|
|
|
-
|
|
|
- console.warn( 'WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument' );
|
|
|
-
|
|
|
- target = new Vector4();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
return target.copy( _currentViewport );
|
|
|
|
|
|
};
|
|
@@ -527,14 +501,6 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
this.getClearColor = function ( target ) {
|
|
|
|
|
|
- if ( target === undefined ) {
|
|
|
-
|
|
|
- console.warn( 'WebGLRenderer: .getClearColor() now requires a Color as an argument' );
|
|
|
-
|
|
|
- target = new Color();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
return target.copy( background.getClearColor() );
|
|
|
|
|
|
};
|