2
0
Эх сурвалжийг харах

all DataTextures needs updates at start

gero3 5 жил өмнө
parent
commit
6e15b50e8e

+ 2 - 0
src/textures/DataTexture2DArray.js

@@ -19,6 +19,8 @@ function DataTexture2DArray( data, width, height, depth ) {
 	this.generateMipmaps = false;
 	this.flipY = false;
 
+	this.needsUpdate = true;
+
 }
 
 DataTexture2DArray.prototype = Object.create( Texture.prototype );

+ 3 - 0
src/textures/DataTexture3D.js

@@ -27,6 +27,9 @@ function DataTexture3D( data, width, height, depth ) {
 	this.generateMipmaps = false;
 	this.flipY = false;
 
+	this.needsUpdate = true;
+
+
 }
 
 DataTexture3D.prototype = Object.create( Texture.prototype );