fix no-aa mode in royale

This commit is contained in:
hunterk 2019-09-27 16:12:24 -05:00
parent 9dfdcee321
commit 3645c67ce7
4 changed files with 3 additions and 8768 deletions

View File

@ -5503,7 +5503,8 @@ void main()
// 2.) Overscan == float2(1.0, 1.0)
// Skipping AA is sharper, but it's only faster with dynamic branches.
const float2 abs_aa_r_offset = abs(get_aa_subpixel_r_offset());
const bool need_subpixel_aa = abs_aa_r_offset.x + abs_aa_r_offset.y > 0.0;
// this next check seems to always return true, even when it shouldn't so disabling it for now
const bool need_subpixel_aa = false;//abs_aa_r_offset.x + abs_aa_r_offset.y > 0.0;
float3 color;
if(aa_level > 0.5 && (geom_mode > 0.5 || any(bool2((geom_overscan.x != 1.0), (geom_overscan.y != 1.0)))))
{

File diff suppressed because it is too large Load Diff

View File

@ -205,7 +205,7 @@ scale11 = "1.0"
srgb_framebuffer11 = "true"
# Pass 12: Compute curvature/AA:
shader12 = "../crt/shaders/crt-royale/src/crt-royale-last-pass-no-geom.glsl"
shader12 = "../crt/shaders/crt-royale/src/crt-royale-geometry-aa-last-pass.glsl"
filter_linear12 = "true"
scale_type12 = "viewport"
mipmap_input12 = "true"