|
@@ -2414,9 +2414,9 @@ class WebGLRenderer {
|
|
|
|
|
|
this.copyTextureToTexture3D = function ( sourceBox, position, srcTexture, dstTexture, level = 0 ) {
|
|
this.copyTextureToTexture3D = function ( sourceBox, position, srcTexture, dstTexture, level = 0 ) {
|
|
|
|
|
|
- const width = Math.round( sourceBox.max.x - sourceBox.min.x );
|
|
|
|
- const height = Math.round( sourceBox.max.y - sourceBox.min.y );
|
|
|
|
- const depth = sourceBox.max.z - sourceBox.min.z + 1;
|
|
|
|
|
|
+ const width = sourceBox.max.x - sourceBox.min.x;
|
|
|
|
+ const height = sourceBox.max.y - sourceBox.min.y;
|
|
|
|
+ const depth = sourceBox.max.z - sourceBox.min.z;
|
|
const glFormat = utils.convert( dstTexture.format );
|
|
const glFormat = utils.convert( dstTexture.format );
|
|
const glType = utils.convert( dstTexture.type );
|
|
const glType = utils.convert( dstTexture.type );
|
|
let glTarget;
|
|
let glTarget;
|