tentone / geo-three

Tile based geographic world map visualization library for threejs
https://tentone.github.io/geo-three/docs/
MIT License
651 stars 105 forks source link

Only use first intersection with the terrain #69

Open tobias74 opened 5 months ago

tobias74 commented 5 months ago

I have observed that there might be more than just one intersection when doing raycasting to get the distance of the map from the camera. I guess that only the first intersection should be used to determine the LOD, right?

This situation of multiple intersections during one raycast happend when the camera was close to the ground and looking towards mountains (MapView with MapView.HEIGHT).