Explorar o código

DataTexture2DArray/3D: Set unpackAlignment = 1 by default (#21633)

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
937122319c
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      src/textures/DataTexture2DArray.js
  2. 1 0
      src/textures/DataTexture3D.js

+ 1 - 0
src/textures/DataTexture2DArray.js

@@ -16,6 +16,7 @@ class DataTexture2DArray extends Texture {
 
 		this.generateMipmaps = false;
 		this.flipY = false;
+		this.unpackAlignment = 1;
 
 		this.needsUpdate = true;
 

+ 1 - 0
src/textures/DataTexture3D.js

@@ -24,6 +24,7 @@ class DataTexture3D extends Texture {
 
 		this.generateMipmaps = false;
 		this.flipY = false;
+		this.unpackAlignment = 1;
 
 		this.needsUpdate = true;