Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jordon Moss
EDuke32-CSRefactor
Commits
878f7d6e
Commit
878f7d6e
authored
Aug 02, 2020
by
Jordon Moss
Browse files
Engine: Apply pogokeen's fix for hightile texture seams in polymost.
parent
74f7b0da
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/polymost1Frag.glsl
View file @
878f7d6e
...
...
@@ -64,7 +64,7 @@ void main()
#ifdef GL_ARB_shader_texture_lod
vec2
texCoord
=
mix
(
fract
(
newCoord
.
xy
),
clamp
(
newCoord
.
xy
,
c_zero
,
c_one
),
u_clamp
);
texCoord
=
clamp
(
u_texturePosSize
.
zw
*
texCoord
,
u_halfTexelSize
,
u_texturePosSize
.
zw
-
u_halfTexelSize
);
vec4
color
=
texture2DGradARB
(
s_texture
,
u_texturePosSize
.
xy
+
texCoord
,
dFdx
(
t
exCoord
),
dFdy
(
t
exCoord
));
vec4
color
=
texture2DGradARB
(
s_texture
,
u_texturePosSize
.
xy
+
texCoord
,
dFdx
(
gl_T
exCoord
[
0
].
xy
),
dFdy
(
gl_T
exCoord
[
0
].
xy
));
#else
vec2
transitionBlend
=
fwidth
(
floor
(
newCoord
.
xy
));
transitionBlend
=
fwidth
(
transitionBlend
)
+
transitionBlend
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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