Scene.clearColor = new Color4(1, 1, 0, 0);
I didn’t express myself clearly. For example, when a red element overlaps with the background, it blends into yellow.
You can click on the scene, and when the canvas is over the red square, the area of the square will turn yellow.
before clicking
after clicking
Granted it does seem like odd behaviour, but if the clear color is 100% transparent anyway, why not just scene.clearColor = new BABYLON.Color4(0, 0, 0, 0)
which doesn’t exhibit the same problem as scene.clearColor = new BABYLON.Color4(1, 1, 0, 0)
?
Still, it’d be worth investigating the reason for this … I’m at a loss
Ah, here’s the answer I think:
This seems to be an issue only on Windows.
I’m on MAC, Chrome and it works without any tweaks. This is why I couldn’t see what @ZoeLeee was talking about.