@selvajs/visualization 1.8.0-beta.4 → 1.8.0-beta.5

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/parse.cjs CHANGED
@@ -2281,7 +2281,7 @@ function createMaterial(matData, options) {
2281
2281
  polygonOffset: true,
2282
2282
  polygonOffsetFactor: SURFACE_OFFSET_FACTOR,
2283
2283
  polygonOffsetUnits: 0,
2284
- depthWrite: true,
2284
+ depthWrite: !(matData.transparent || matData.opacity < 1),
2285
2285
  depthTest: true
2286
2286
  });
2287
2287
  if (matData.envMapIntensity != null) {