mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Clamp pre-bloom color to valid range (#15453)
That avoids flashing artifacts when combining MSAA and bloom.
This commit is contained in:
parent
b77ad82fb9
commit
8c56434bd3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue