Issue when using shadowGenerator.transparencyShadow = true

Hi everybody,

I have an issue when using shadowGenerator.transparencyShadow = true.

I need to manage transparencies when using materials with alpha AND using materials with opacitytexture.

Here’s my PG : https://playground.babylonjs.com/#C77SMH#30

When keeping the line 86, it works with my opacitytexture but not with the transparent box and it is the opposite when deleting the line 86.

Could you help me to find a solution which works in both cases ?

Thanks,

Boris

I’m not sure to understand, your PG seems to work:

What should we see?

If you want a soft shadow for the transparent glass, you can set shadowGenerator.enableSoftTransparentShadow = true:

2 Likes

Thanks a lot…