poppygl 0.0.25 → 0.0.26
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/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -745,6 +745,9 @@ var SoftwareRenderer = class {
|
|
|
745
745
|
const alphaMode = material.alphaMode ?? "OPAQUE";
|
|
746
746
|
const alphaCutoff = material.alphaCutoff ?? 0.5;
|
|
747
747
|
if (alphaMode === "MASK" && a < alphaCutoff) continue;
|
|
748
|
+
if (alphaMode !== "BLEND") {
|
|
749
|
+
a = 1;
|
|
750
|
+
}
|
|
748
751
|
const shouldWriteDepth = alphaMode !== "BLEND";
|
|
749
752
|
if (shouldWriteDepth) {
|
|
750
753
|
depth[di] = z01;
|