@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.
- package/dist/gift-stage.cjs.js +1 -1
- package/dist/gift-stage.es.js +6 -2
- package/package.json +1 -1
package/dist/gift-stage.es.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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