소스 검색

Fixed #3283: Float Raw texture

Sebastien Vandenberghe 7 년 전
부모
커밋
e0590845e4
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/Materials/Textures/babylon.internalTexture.ts
  2. 1 1
      src/Materials/Textures/babylon.rawTexture.ts

+ 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