mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:10:04 +00:00 
			
		
		
		
	Radar colors should be drawn using GL_NEAREST, textures are generated such that exact levels already exist
This commit is contained in:
		
							parent
							
								
									304297be9b
								
							
						
					
					
						commit
						cc36922e99
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -132,6 +132,8 @@ void RadarProductLayer::Initialize() | |||
|    // Create color table
 | ||||
|    gl.glGenTextures(1, &p->texture_); | ||||
|    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); | ||||
| 
 | ||||
|    connect(context()->radarProductView_.get(), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat