phaserjs/phaser-ce

Creature Module Alpha Issue

ndee85 opened this issue · 1 comments

Hi,
we are implementing the creature module from kestrelmoon into our framework which is based on phaser ce 2.12.0. Everything seems to work good so far. One issue I am experiencing with alpha. Strangely when having a creature object with just one mesh, alpha works fine. But as soon as having multiple meshes, the alpha adds up to the count of how many meshes the creature object contains.

It sounds very similar to this issue.
phaserjs/phaser#1409

I already checked the creature shader, but those seem to look fine. The alpha is multiplied onto the rgb values. And for one mesh everything looks fine.

Does someone have a little more insight and maybe give a hint on where the problem occurs?

I have attached this image which illustrates the problem. I did set the alpha for the head in every instance to 0.5. You can clearly see it behaves a little strange.

Creature_Alpha_bug

Sorry for the report. This bug was not caused by phaser, rather how we used some of the data.
Closing issue.