Browse Source

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

Mr.doob 4 years ago
parent
commit
937122319c
2 changed files with 2 additions and 0 deletions
  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;