Browse Source

Merge pull request #6153 from sebavan/master

Fix Texture Format Alpha
sebavan 6 năm trước cách đây
mục cha
commit
d404a11ea5
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      src/Engines/engine.ts

+ 6 - 0
src/Engines/engine.ts

@@ -7335,6 +7335,12 @@ export class Engine {
                         return this._gl.RGB8UI;
                     case Engine.TEXTUREFORMAT_RGBA_INTEGER:
                         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:
                         return this._gl.RGBA8;
                 }