effekseer / Effekseer

MIT License
1.49k stars 219 forks source link

Inconsistent render behavior between editor and WebGL implementation #1015

Open tshadowknight opened 5 months ago

tshadowknight commented 5 months ago

Hi,

I've been using Effekseer in a web project for a while now and things have been working fine but I have run into an issue. The issue being that for certain combinations of elements with different blend modes the end result is different between the editor and the runtime.

I have an example effect set up that highlights my problem: subtract_test.zip

The setup is: -one pane with blend mode blend, blue in example -one pane with blend mode subtract, pure white in the example(appears black) -one particle effect with blend mode add, white in the example

In the editor the final result is like this:

image

The particles viewed through the panes appear blue.

In the runtime the final result is like this:

image

The particles viewed through the panes appear white.

Since I've been experimenting with using negative blend panes for tinting an effect, having this inconsistency is rather inconvenient. And for the record the effect achieved in editor seems preferable from my end at least. But the most important issue is the lack of consistency.

I can only confirm this issue exists when using the WebGL runtime so I am unsure if this an issue specific to that runtime or a core issue.

Kind regards, TSK

tshadowknight commented 5 months ago

An example of the issue with a more complex effect for reference:

image

durswd commented 5 months ago

Subtract is complicated. It depends many things

tshadowknight commented 5 months ago

Right, so I suppose it'll be better to try and work around it by using non-subtract blend.