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