@babylonjs/core 7.17.2 → 7.18.0

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.
@@ -822,7 +822,7 @@ export class ShadowGenerator {
822
822
  effect.setFloat2("depthValuesSM", this.getLight().getDepthMinZ(camera), this.getLight().getDepthMinZ(camera) + this.getLight().getDepthMaxZ(camera));
823
823
  }
824
824
  if (isTransparent && this.enableSoftTransparentShadow) {
825
- effect.setFloat("softTransparentShadowSM", effectiveMesh.visibility * material.alpha);
825
+ effect.setFloat2("softTransparentShadowSM", effectiveMesh.visibility * material.alpha, this._opacityTexture?.getAlphaFromRGB ? 1 : 0);
826
826
  }
827
827
  if (shadowDepthWrapper) {
828
828
  subMesh._setMainDrawWrapperOverride(drawWrapper);