From d62ae5988c88e1ea62d74489a28bad1b6ca2e98c Mon Sep 17 00:00:00 2001 From: Michele Date: Sat, 18 Jan 2020 12:39:49 -0800 Subject: [PATCH] Temporarily disable Black Point in Levels Clarity for Vulkan Disabling it while someone looks into the clipping issue --- .../37040a485a29d54e_00000000000003c9_ps.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Enhancements/BreathOfTheWild_Clarity/37040a485a29d54e_00000000000003c9_ps.txt b/Enhancements/BreathOfTheWild_Clarity/37040a485a29d54e_00000000000003c9_ps.txt index 985bebd5..fbea0011 100644 --- a/Enhancements/BreathOfTheWild_Clarity/37040a485a29d54e_00000000000003c9_ps.txt +++ b/Enhancements/BreathOfTheWild_Clarity/37040a485a29d54e_00000000000003c9_ps.txt @@ -1295,7 +1295,7 @@ vec3 ColorMatrixPass(vec3 inputColor) return clamp(color, 0.0, 1.); } -// Contrasty +//Contrasty vec3 BotWVibrance(vec3 color) { float avg = (color.r + color.g + color.b) / 3.0; @@ -1324,21 +1324,25 @@ vec3 Contrasty(vec3 fColour) { return fColour; } -// Levels +//Levels vec3 LevelsPass(vec3 inputColor) { float black_point_float = BlackPoint / 255.0; float white_point_float = WhitePoint == BlackPoint ? (255.0 / 0.00025) : (255.0 / (WhitePoint - BlackPoint)); // Avoid division by zero if the white and black point are the same vec3 color = inputColor; - color = color * white_point_float - (black_point_float * white_point_float); +#ifdef VULKAN + color = color * white_point_float; +#else + color = color * white_point_float - (black_point_float * white_point_float); +#endif return color; } //FilmPass -vec3 FilmPass(vec3 inputColor) { +vec3 FilmPass(vec3 inputColor) { vec3 B = inputColor.rgb; vec3 G = B; vec3 H = vec3(0.01); @@ -1547,7 +1551,7 @@ float lumasharping(sampler2D tex, vec2 pos) { return sharp_luma; } -//Fake High Dynamic Range. +//Fake High Dynamic Range vec3 HDRPass(sampler2D tex, vec2 pos) { vec3 color = texture(tex, pos).rgb;