Kaynağa Gözat

Half Float Webgl2 supports

Sebastien Vandenberghe 8 yıl önce
ebeveyn
işleme
3f577a7d1a
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      src/babylon.engine.ts

+ 3 - 0
src/babylon.engine.ts

@@ -746,6 +746,9 @@
 
             this._caps.textureHalfFloat = this._webGLVersion > 1 || this._gl.getExtension('OES_texture_half_float');
             this._caps.textureHalfFloatLinearFiltering = this._webGLVersion > 1 || (this._caps.textureHalfFloat && this._gl.getExtension('OES_texture_half_float_linear'));
+            if (this._webGLVersion > 1) {
+                Engine.HALF_FLOAT_OES = 0x140B;
+            }
             this._caps.textureHalfFloatRender = this._caps.textureHalfFloat && this._canRenderToHalfFloatFramebuffer();
 
             this._caps.textureLOD = this._webGLVersion > 1 || this._gl.getExtension('EXT_shader_texture_lod');