Topic: A copy of the the map and the horizon with flipped normals (?!)
Hello, I have a problem that I'm trying to figure out how to solve:
I'm drawing a route on the map through GPX. This route is very long, it extend on the horizon for kilometers, and several mountains.
I'm not getting waypoints elevation from GPX, but I'm getting the elevation from the map for each waypoint. Despite this, to not have route/map intersections (the route go under the map) I have to use a shader that always draw the route on top of everything else (I've tried to move each waypoint a bit over the map (10meters) but still I have route/map intersections).
My problem is that this way the route is (obviuosly) always visible, and it's not occluded by the mountains when it should be.
So, I can't use a standard shader because my route sometimes go under the map, but with this "draw-on-top" shader it is never occluded by the mountains.
So, my crazy idea would be to create a copy on fly of the map and the horizon, flip their normals, and use them to cutout in some way the route... quite weird but I can't figure out another solution.
Maybe is it possible? Or, maybe, do you have a better suggestion?