mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	Interpolate icon coordinates for anti-aliasing
- Still needs a little work, but this looks MUCH better
This commit is contained in:
		
							parent
							
								
									f512df9dd6
								
							
						
					
					
						commit
						232fafc9fa
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -230,9 +230,9 @@ void PlacefileIcons::Render( | ||||||
|          gl.glUniform1f(p->uMapDistanceLocation_, 0.0f); |          gl.glUniform1f(p->uMapDistanceLocation_, 0.0f); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|       // Don't interpolate texture coordinates
 |       // Interpolate texture coordinates
 | ||||||
|       gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); |       gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | ||||||
|       gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); |       gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | ||||||
| 
 | 
 | ||||||
|       // Draw icons
 |       // Draw icons
 | ||||||
|       gl.glDrawArrays(GL_TRIANGLES, 0, p->numVertices_); |       gl.glDrawArrays(GL_TRIANGLES, 0, p->numVertices_); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat