3d-dice / dice-box

3D Game Dice for any JavaScript App
https://fantasticdice.games/
MIT License
127 stars 28 forks source link

Disabling shadows adds a white background to the dice box #68

Closed ZeAntwan closed 2 months ago

ZeAntwan commented 1 year ago

Hi, and thanks for creating this tool! I was trying to implement it in a way for me to overlay on top of a live stream, without the shadows to match the aesthetics.

But after messing around with it for a while I realised that if I set the option "enableShadows: false:, I lose the shadow, but also the transparent background, meaning even if I don't want a background, or want an image, it gets replaced by a white fill. image image

frankieali commented 1 year ago

Yes. There is certainly something going wrong there. I'm seeing the issue in all the demos. I recently updated the BabylonJS module. Something might have changed concerning shadows or transparent canvas. I'll look into it.

frankieali commented 8 months ago

The problem was related to changes in BabylonJS. Fixed in version 1.0.11