@taole/giftstage 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1820,7 +1820,9 @@ const wA = class kA {
1820
1820
  async init() {
1821
1821
  const A = this.canvas.getContext("webgl2", {
1822
1822
  alpha: !0,
1823
- premultipliedAlpha: !1,
1823
+ // All render pipelines output premultiplied RGBA and use ONE / ONE_MINUS_SRC_ALPHA.
1824
+ // The canvas compositor must use the same alpha convention or it multiplies RGB again.
1825
+ premultipliedAlpha: !0,
1824
1826
  antialias: this.antialias,
1825
1827
  depth: !1,
1826
1828
  stencil: !0
@@ -2372,7 +2374,9 @@ class Xg {
2372
2374
  async init() {
2373
2375
  const A = this.canvas.getContext("webgl", {
2374
2376
  alpha: !0,
2375
- premultipliedAlpha: !1,
2377
+ // All render pipelines output premultiplied RGBA and use ONE / ONE_MINUS_SRC_ALPHA.
2378
+ // The canvas compositor must use the same alpha convention or it multiplies RGB again.
2379
+ premultipliedAlpha: !0,
2376
2380
  antialias: this.antialias,
2377
2381
  depth: !1,
2378
2382
  stencil: !0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taole/giftstage",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "High-performance WebGPU/WebGL2 gift animation player unifying SVGA, VAP, and AlphaVideo",
5
5
  "type": "module",
6
6
  "main": "dist/gift-stage.cjs.js",