|
@@ -12,9 +12,17 @@ import { CubeCamera } from '../cameras/CubeCamera.js';
|
|
|
* @author WestLangley / http://github.com/WestLangley
|
|
|
*/
|
|
|
|
|
|
-function WebGLCubeRenderTarget( width, height, options ) {
|
|
|
+function WebGLCubeRenderTarget( size, options, dummy ) {
|
|
|
|
|
|
- WebGLRenderTarget.call( this, width, height, options );
|
|
|
+ if ( Number.isInteger( options ) ) {
|
|
|
+
|
|
|
+ console.warn( 'THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )' );
|
|
|
+
|
|
|
+ options = dummy;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ WebGLRenderTarget.call( this, size, size, options );
|
|
|
|
|
|
}
|
|
|
|