mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Clamp pre-bloom color to valid range (#15453)
That avoids flashing artifacts when combining MSAA and bloom.
This commit is contained in:
		@@ -23,7 +23,7 @@ void main(void)
 | 
			
		||||
	vec2 uv = varTexCoord.st;
 | 
			
		||||
	vec3 color = texture2D(rendered, uv).rgb;
 | 
			
		||||
	// translate to linear colorspace (approximate)
 | 
			
		||||
	color = pow(color, vec3(2.2));
 | 
			
		||||
	color = pow(clamp(color, 0.0, 1.0), vec3(2.2));
 | 
			
		||||
 | 
			
		||||
	color *= exposureParams.compensationFactor * bloomStrength;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user