Unverified Commit 8f190244 authored by hizzlekizzle's avatar hizzlekizzle Committed by GitHub
Browse files

Merge pull request #187 from barbudreadmon/patch-1

fix zfast_crt for rotated games
parents 54342266 b0c288b1
Pipeline #49683 passed with stage
in 19 seconds
......@@ -95,10 +95,10 @@ void main()
float YY = Y*Y;
#if defined(FINEMASK)
float whichmask = fract( gl_FragCoord.x*-0.4999);
float whichmask = fract(floor(vTexCoord.x*params.OutputSize.x*-0.4999));
float mask = 1.0 + float(whichmask < 0.5) * -MASK_DARK;
#else
float whichmask = fract(gl_FragCoord.x * -0.3333);
float whichmask = fract(floor(vTexCoord.x*params.OutputSize.x)*-0.3333));
float mask = 1.0 + float(whichmask <= 0.33333) * -MASK_DARK;
#endif
vec3 colour = texture(Source, p).rgb;
......@@ -111,4 +111,4 @@ void main()
#endif
FragColor.rgb = colour.rgb*mix(scanLineWeight*mask, scanLineWeightB, dot(colour.rgb,vec3(maskFade)));
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment