Material shines through when zooming out (three.js r78)
When zooming out to a certain extend the material of objects behind other objects starts to shine through. It looks very similar to the effect when faces are overlapping (faces are in the same plane).
To demonstrate this I made a fiddle.
In this example I draw two thin boxes (thickness 1 and there is a empty space between the boxes of also 1) so the boxes are not touching eachother but the material shines through anyway.
// geometry with thickness 1
var geometry = new THREE.BoxGeometry(20000, 20000, 1);
This screenshot demonstrates the effect:
This screenshot shows there is a space between the two geometries.
When zooming the effect sometimes appears and sometimes disappears (it is also depending on zoom distance and the size of the screen).
I tried to play around with different material properties, but I seem to be unable to find any material setting that prevents this from happening.
Is this a bug? Or a WebGL limitation? Or a general limitation in 3D graphics? Or am I missing something and is this actually a material or renderer configuration mistake?
In my models this effect is really disturbing and ugly. Can I somehow prevent this from happening?