Browse Source

Merge pull request #6153 from sebavan/master

Fix Texture Format Alpha
sebavan 6 years ago
parent
commit
d404a11ea5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Engines/engine.ts

+ 6 - 0
src/Engines/engine.ts

@@ -7335,6 +7335,12 @@ export class Engine {
                         return this._gl.RGB8UI;
                         return this._gl.RGB8UI;
                     case Engine.TEXTUREFORMAT_RGBA_INTEGER:
                     case Engine.TEXTUREFORMAT_RGBA_INTEGER:
                         return this._gl.RGBA8UI;
                         return this._gl.RGBA8UI;
+                    case Engine.TEXTUREFORMAT_ALPHA:
+                        return this._gl.ALPHA;
+                    case Engine.TEXTUREFORMAT_LUMINANCE:
+                        return this._gl.LUMINANCE;
+                    case Engine.TEXTUREFORMAT_LUMINANCE_ALPHA:
+                        return this._gl.LUMINANCE_ALPHA;
                     default:
                     default:
                         return this._gl.RGBA8;
                         return this._gl.RGBA8;
                 }
                 }