pmgl / microstudio

Free, open source game engine online

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A problem with some blending mode

DeRaNGeR opened this issue · comments

I was testing to create a light system with some blend mode. But there are some blend mode that create a problem. For now i tested xor and destination-in. These two create the problem i write below:

  • you need two sprites:
    1. one an object to see with the light
    2. one sprite as a spot of the light

the code:
image

the result in preview:
image

the result on the final game:
image

As you can see, there are some buggy renders.

I attach here a test with destination-in that has the same result:
nightriverside.zip

I don't know what to do with this one. Looks more like a browser bug to me. I tried your project with Chrome and FireFox. It looks ok in FireFox and somewhat buggy on Chrome. Rendering on Chrome differs depending on whether dev tools are open or closed. Have you found a workaround yet?

Nope. :(

commented

I am closing this as it seems to be a browser bug, which I can't reproduce. If this continues to happen consistently for you, in different browsers, please create a minimal test case project and share it in a new issue :-)