File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ class Textures extends DataMap {
147147
148148 const texture = textures [ i ] ;
149149
150- texture . isTextureArray = size . depth > 1 ;
150+ texture . isTextureArray = this . renderer . xr . useMultiview ( ) === true && size . depth > 1 ;
151151 if ( textureNeedsUpdate ) texture . needsUpdate = true ;
152152
153153 this . updateTexture ( texture , options ) ;
Original file line number Diff line number Diff line change @@ -569,13 +569,13 @@ ${ flowData.code }
569569
570570 }
571571
572- } else if ( texture . isDataArrayTexture === true || texture . isCompressedArrayTexture === true || texture . isTextureArray === true ) {
572+ } else if ( uniform . type === 'texture3D' && texture . isTextureArray === false ) {
573573
574- snippet = `${ typePrefix } sampler2DArray ${ uniform . name } ;` ;
574+ snippet = `${ typePrefix } sampler3D ${ uniform . name } ;` ;
575575
576- } else if ( uniform . type === 'texture3D' ) {
576+ } else if ( texture . isDataArrayTexture === true || texture . isCompressedArrayTexture === true || texture . isTextureArray === true ) {
577577
578- snippet = `${ typePrefix } sampler3D ${ uniform . name } ;` ;
578+ snippet = `${ typePrefix } sampler2DArray ${ uniform . name } ;` ;
579579
580580 } else {
581581
You can’t perform that action at this time.
0 commit comments