|
@@ -2007,13 +2007,6 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
this.copyFramebufferToTexture = function ( position, texture, level = 0 ) {
|
|
|
|
|
|
- if ( texture.isFramebufferTexture !== true ) {
|
|
|
-
|
|
|
- console.error( 'THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.' );
|
|
|
- return;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
const levelScale = Math.pow( 2, - level );
|
|
|
const width = Math.floor( texture.image.width * levelScale );
|
|
|
const height = Math.floor( texture.image.height * levelScale );
|