Browse Source

Fixed #3283: Float Raw texture

Sebastien Vandenberghe 7 years ago
parent
commit
e0590845e4

+ 1 - 1
src/Materials/Textures/babylon.internalTexture.ts

@@ -116,7 +116,7 @@ module BABYLON {
 
                 case InternalTexture.DATASOURCE_RAW:
                     proxy = this._engine.createRawTexture(this._bufferView, this.baseWidth, this.baseHeight, this.format, this.generateMipMaps, 
-                                                            this.invertY, this.samplingMode, this._compression); 
+                                                            this.invertY, this.samplingMode, this._compression, this.type); 
                     proxy._swapAndDie(this);
 
                     this.isReady = true;

+ 1 - 1
src/Materials/Textures/babylon.rawTexture.ts

@@ -11,7 +11,7 @@
         }
 
         public update(data: ArrayBufferView): void {
-            this._engine.updateRawTexture(this._texture, data, this.format, this._invertY);
+            this._engine.updateRawTexture(this._texture, data, this._texture!.format, this._texture!.invertY, undefined, this._texture!.type);
         }
 
         // Statics