Here is strange artifacts during the lighting. I've tried a different average normals calculations, but nothing. I think that it may be bad light shaders I've made. Or may be something else...please help.
I'm working on 3d planet engine with terrain. Now I have quadtree planet with SRTM terrain. It's work fine but exept one. Camera begins rumble-tumble(jitter) on the low altitude(close to the zero altitude).
Sommet way is working to searching neighbours in the quadtree, but what if two nodes are given allready, and only thing is last it is to check that they both are neighbours to the given direction(N,W,S,E)?
In my algorithm I use Sommet way: I traverse up to the common uncestor and watching nodes for reflection(symmetry). But it is not works properly. As result there are a more than one neighbours matched to the given direction, it's impossible, because one direction - one neighbour.
Please help, how to check two nodes are neighbours?