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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. 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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "poppygl",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/tscircuit/poppygl.git"