Meshes are now sorted by material to improve performances and not rendered in the order they were created anymore.
You can make sure that sphere3
is rendered first by setting renderingGroupId = 1
for all other meshes:
Or you can provide your own sorting function for opaque objects through scene.renderingManager.setRenderingOrder
: