Radar colors should be drawn using GL_NEAREST, textures are generated such that exact levels already exist

This commit is contained in:
Dan Paulat 2022-04-10 10:42:37 -05:00
parent 304297be9b
commit cc36922e99

View file

@ -132,6 +132,8 @@ void RadarProductLayer::Initialize()
// Create color table // Create color table
gl.glGenTextures(1, &p->texture_); gl.glGenTextures(1, &p->texture_);
UpdateColorTable(); UpdateColorTable();
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
connect(context()->radarProductView_.get(), connect(context()->radarProductView_.get(),