mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:30:04 +00:00 
			
		
		
		
	Adding reflectivity declutter capability
This commit is contained in:
		
							parent
							
								
									e58b1f5b57
								
							
						
					
					
						commit
						77ba92ce7f
					
				
					 7 changed files with 130 additions and 6 deletions
				
			
		|  | @ -7,7 +7,10 @@ uniform sampler1D uTexture; | |||
| uniform uint uDataMomentOffset; | ||||
| uniform float uDataMomentScale; | ||||
| 
 | ||||
| uniform bool uCFPEnabled; | ||||
| 
 | ||||
| flat in uint dataMoment; | ||||
| flat in uint cfpMoment; | ||||
| 
 | ||||
| layout (location = 0) out vec4 fragColor; | ||||
| 
 | ||||
|  | @ -15,5 +18,10 @@ void main() | |||
| { | ||||
|    float texCoord = float(dataMoment - uDataMomentOffset) / uDataMomentScale; | ||||
| 
 | ||||
|    if (uCFPEnabled && cfpMoment > 8u) | ||||
|    { | ||||
|       texCoord = texCoord - float(cfpMoment - 8u) / 2.0f; | ||||
|    } | ||||
| 
 | ||||
|    fragColor = texture(uTexture, texCoord); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat