mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Data moments should not have GLSL flat qualifiers to be sampled more than once per triangle
This commit is contained in:
		
							parent
							
								
									80d5be956d
								
							
						
					
					
						commit
						1b07c6f5b5
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -9,14 +9,14 @@ uniform float uDataMomentScale; | |||
| 
 | ||||
| uniform bool uCFPEnabled; | ||||
| 
 | ||||
| flat in uint dataMoment; | ||||
| flat in uint cfpMoment; | ||||
| in float dataMoment; | ||||
| in float cfpMoment; | ||||
| 
 | ||||
| layout (location = 0) out vec4 fragColor; | ||||
| 
 | ||||
| void main() | ||||
| { | ||||
|    float texCoord = (float(dataMoment) - float(uDataMomentOffset)) / uDataMomentScale; | ||||
|    float texCoord = (dataMoment - float(uDataMomentOffset)) / uDataMomentScale; | ||||
| 
 | ||||
|    if (uCFPEnabled && cfpMoment > 8u) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat