I’m sorry if the question is inaccurate but I’m not sure if I’ve understood my problem correctly.
Trying to draw a seemingly flat surface using buffer geometry that contains lots of points. The points may move on x and y axis but their order should remain stable from user’s (camera’s) point of view. I’m trying to use the Z position to achieve this, but it seems a bit unstable.
Simplified my problem into this: http://jsfiddle.net/z9v89eep/5/
The squares seem to be in wrong order. I could solve this by changing the Z of the squares to have a bigger difference or by moving camera closer, but either way I’m running out of possible values on z-axis.
Is there some problem in that JSFiddle or is there a better way to achieve this?