Merge pull request #43058 from clayjohn/VULKAN-FXAA-bug
[4.0]Remove extra exposure multiply in FXAA
This commit is contained in:
commit
6c173e2f7f
1 changed files with 2 additions and 3 deletions
|
@ -293,9 +293,8 @@ vec3 do_fxaa(vec3 color, float exposure, vec2 uv_interp) {
|
||||||
dir * rcpDirMin)) *
|
dir * rcpDirMin)) *
|
||||||
params.pixel_size;
|
params.pixel_size;
|
||||||
|
|
||||||
vec3 rgbA = 0.5 * (textureLod(source_color, uv_interp + dir * (1.0 / 3.0 - 0.5), 0.0).xyz * exposure + textureLod(source_color, uv_interp + dir * (2.0 / 3.0 - 0.5), 0.0).xyz) * exposure;
|
vec3 rgbA = 0.5 * exposure * (textureLod(source_color, uv_interp + dir * (1.0 / 3.0 - 0.5), 0.0).xyz + textureLod(source_color, uv_interp + dir * (2.0 / 3.0 - 0.5), 0.0).xyz);
|
||||||
vec3 rgbB = rgbA * 0.5 + 0.25 * (textureLod(source_color, uv_interp + dir * -0.5, 0.0).xyz * exposure +
|
vec3 rgbB = rgbA * 0.5 + 0.25 * exposure * (textureLod(source_color, uv_interp + dir * -0.5, 0.0).xyz + textureLod(source_color, uv_interp + dir * 0.5, 0.0).xyz);
|
||||||
textureLod(source_color, uv_interp + dir * 0.5, 0.0).xyz * exposure);
|
|
||||||
|
|
||||||
float lumaB = dot(rgbB, luma);
|
float lumaB = dot(rgbB, luma);
|
||||||
if ((lumaB < lumaMin) || (lumaB > lumaMax)) {
|
if ((lumaB < lumaMin) || (lumaB > lumaMax)) {
|
||||||
|
|
Loading…
Reference in a new issue