mirror of
https://github.com/minetest/minetest.git
synced 2024-11-26 17:43:45 +01:00
Fix artifacts with bloom + tonemapping on ogles2 (#14688)
This commit is contained in:
parent
bc60693a5d
commit
6c0b8229ec
@ -61,7 +61,8 @@ vec4 applyBloom(vec4 color, vec2 uv)
|
||||
equation used: ((x * (A * x + C * B) + D * E) / (x * (A * x + B) + D * F)) - E / F
|
||||
*/
|
||||
|
||||
vec3 uncharted2Tonemap(vec3 x)
|
||||
// see https://github.com/minetest/minetest/pull/14688
|
||||
highp vec3 uncharted2Tonemap(highp vec3 x)
|
||||
{
|
||||
return ((x * (0.22 * x + 0.03) + 0.002) / (x * (0.22 * x + 0.3) + 0.06)) - 0.03333;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user