Fix transparency in color table layer and radar product layer

This commit is contained in:
Dan Paulat 2023-08-03 22:40:20 -05:00
parent f9fc32e479
commit 6607eb0e56
2 changed files with 6 additions and 0 deletions

View file

@ -134,6 +134,9 @@ void ColorTableLayer::Render(
p->shaderProgram_->Use();
// Set OpenGL blend mode for transparency
gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
gl.glUniformMatrix4fv(
p->uMVPMatrixLocation_, 1, GL_FALSE, glm::value_ptr(projection));

View file

@ -262,6 +262,9 @@ void RadarProductLayer::Render(
p->shaderProgram_->Use();
// Set OpenGL blend mode for transparency
gl.glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
if (p->colorTableNeedsUpdate_)
{
UpdateColorTable();