mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Color output based on moment data
This commit is contained in:
		
							parent
							
								
									421c600ed0
								
							
						
					
					
						commit
						f004c7aee0
					
				
					 5 changed files with 176 additions and 60 deletions
				
			
		|  | @ -7,12 +7,12 @@ | |||
| #define RAD2DEG       57.295779513082320876798156332941f | ||||
| 
 | ||||
| layout (location = 0) in vec2 aLatLong; | ||||
| layout (location = 1) in vec2 aTexCoord; | ||||
| layout (location = 1) in uint aDataMoment; | ||||
| 
 | ||||
| uniform mat4 uMVPMatrix; | ||||
| uniform vec2 uMapScreenCoord; | ||||
| 
 | ||||
| out vec2 texCoord; | ||||
| flat out uint dataMoment; | ||||
| 
 | ||||
| vec2 latLngToScreenCoordinate(in vec2 latLng) | ||||
| { | ||||
|  | @ -25,8 +25,8 @@ vec2 latLngToScreenCoordinate(in vec2 latLng) | |||
| 
 | ||||
| void main() | ||||
| { | ||||
|    // Pass the texture coordinate to the fragment shader | ||||
|    texCoord = aTexCoord; | ||||
|    // Pass the coded data moment to the fragment shader | ||||
|    dataMoment = aDataMoment; | ||||
| 
 | ||||
|    vec2 p = latLngToScreenCoordinate(aLatLong) - uMapScreenCoord; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat