Browse Source

Fix Premul Alpha, alpha

sevan 8 năm trước cách đây
mục cha
commit
e1533629a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/babylon.engine.ts

+ 1 - 1
src/babylon.engine.ts

@@ -2005,7 +2005,7 @@
                     this._alphaState.alphaBlend = false;
                     break;
                 case Engine.ALPHA_PREMULTIPLIED:
-                    this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE, this._gl.ONE_MINUS_SRC_ALPHA, this._gl.ONE, this._gl.ONE_MINUS_SRC_ALPHA);
+                    this._alphaState.setAlphaBlendFunctionParameters(this._gl.ONE, this._gl.ONE_MINUS_SRC_ALPHA, this._gl.ONE, this._gl.ONE);
                     this._alphaState.alphaBlend = true;
                     break;
                 case Engine.ALPHA_COMBINE: