JujuAdams / Bulb

2D lighting and shadows for GameMaker 2022 LTS
http://www.jujuadams.com/Bulb/
MIT License
87 stars 9 forks source link

Shadows flicker on BULB_MODE.SOFT_ADD #8

Closed biyectivo closed 1 year ago

biyectivo commented 3 years ago

When using SOFT_ADD bulb mode, shadows flicker. This behavior happens on both export targets I tried (Windows and HTML5). Tested with the Bulb.yyp sample project downloaded from the Github page itself, and confirmed with my sample project. When switching to any other bulb modes, it works fine.

A (kinda low bit) GIF showing the behavior with SOFT_ADD and with the next mode (HARD_BM_ADD) can be viewed here: https://ibb.co/G2Q6pQh

Tested on an mobile Nvidia RTX 2080 Max-Q using Gamemaker Studio 2 IDE v2.3.2.560 and runtime 2.3.2.426.

JujuAdams commented 3 years ago

Thanks for making an issue. Similarly to #9, I think the alpha channel solution I'm using isn't 100% reliable. I'll let you know when and if I make any progress.

JujuAdams commented 1 year ago

Potentially fixed by https://github.com/JujuAdams/Bulb/commit/b7b92bf0e66559ec1234be0920f92d8909cfad92