Demo: https://jsfiddle.net/wvp4oLen/. Excepted behavior on the left and Babylon’s behavior on the right.
I’m trying to create a transparency indicator, i.e. checkerboard behind my scene’s canvas element. I’m setting the background color with scene.clearColor
and for partly transparent colors expect more or less the same result as with pure canvas. However, the colors mixing seems way off; this is especially obvious when increasing transparency: in pure canvas the color disappears and background becomes even more visible, in Babylon’s version the colors get increasingly more “acidic” and disappear only with transparency set to 100%.
What am I doing wrong and how do I fix it?