mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Fix transparency in color table layer and radar product layer
This commit is contained in:
parent
f9fc32e479
commit
6607eb0e56
2 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue