Skip to content

Commit

Permalink
copyTextureToTexture3D exclusive aligned xyz (#28154)
Browse files Browse the repository at this point in the history
  • Loading branch information
RenaudRohlinger committed Apr 18, 2024
1 parent 13dc52a commit 3ecc744
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2414,9 +2414,9 @@ class WebGLRenderer {

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 glType = utils.convert( dstTexture.type );
let glTarget;
Expand Down

0 comments on commit 3ecc744

Please sign in to comment.