mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:40:04 +00:00 
			
		
		
		
	Fix transparency in color table layer and radar product layer
This commit is contained in:
		
							parent
							
								
									7c863793ea
								
							
						
					
					
						commit
						902a35de4b
					
				
					 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)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -264,6 +264,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
	
	 Dan Paulat
						Dan Paulat