Преглед на файлове

all DataTextures needs updates at start

gero3 преди 6 години
родител
ревизия
6e15b50e8e
променени са 2 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 2 0
      src/textures/DataTexture2DArray.js
  2. 3 0
      src/textures/DataTexture3D.js

+ 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 );