cartographer-project / point_cloud_viewer

View billions of points in your browser.
Apache License 2.0
337 stars 98 forks source link

sdl_viewer: Single layer of a terrain drawer #354

Closed nnmm closed 4 years ago

nnmm commented 4 years ago

This struct encapsulates a terrain texture that gets updated as the camera moves. That is, it ties together loading incremental texture data (TiledTextureLoader) and updating it on the OpenGL side (GlMovingWindowTexture).

A terrain drawer might involve several layers – for visualizing several patches of terrain at once, or multilevel terrain (overpasses). Hence, this struct also includes uniforms that are set on a per-layer basis: each layer might have a different frame, resolution, etc.

nnmm commented 4 years ago

ptal @krzesi-mir