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.
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.