Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro Assets
glsl-shaders
Commits
3c690440
Unverified
Commit
3c690440
authored
Aug 18, 2021
by
hizzlekizzle
Committed by
GitHub
Aug 18, 2021
Browse files
Merge pull request #144 from barbudreadmon/patch-1
fix zfast_crt for rotated games
parents
3c4dba36
6b345091
Pipeline
#58139
passed with stage
in 17 seconds
Changes
1
Pipelines
52
Hide whitespace changes
Inline
Side-by-side
crt/shaders/zfast_crt.glsl
View file @
3c690440
...
...
@@ -178,10 +178,10 @@ void main()
COMPAT_PRECISION
float
YY
=
Y
*
Y
;
#if defined(FINEMASK)
COMPAT_PRECISION
float
whichmask
=
fract
(
gl_FragCoord
.
x
*-
0
.
4999
);
COMPAT_PRECISION
float
whichmask
=
fract
(
floor
(
vTexCoord
.
x
*
OutputSize
.
x
*-
0
.
4999
)
)
;
COMPAT_PRECISION
float
mask
=
1
.
0
+
float
(
whichmask
<
0
.
5
)
*
-
MASK_DARK
;
#else
COMPAT_PRECISION
float
whichmask
=
fract
(
gl_FragCoord
.
x
*
-
0
.
3333
);
COMPAT_PRECISION
float
whichmask
=
fract
(
floor
(
vTexCoord
.
x
*
OutputSize
.
x
)
*
-
0
.
3333
);
COMPAT_PRECISION
float
mask
=
1
.
0
+
float
(
whichmask
<=
0
.
33333
)
*
-
MASK_DARK
;
#endif
COMPAT_PRECISION
vec3
colour
=
COMPAT_TEXTURE
(
Source
,
p
).
rgb
;
...
...
@@ -196,4 +196,4 @@ void main()
FragColor
.
rgb
=
colour
.
rgb
*
mix
(
scanLineWeight
*
mask
,
scanLineWeightB
,
dot
(
colour
.
rgb
,
vec3
(
maskFade
)));
}
#endif
\ No newline at end of file
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment