ref: gl: fix ugly seam at the skybox, thanks Spoike for help

This commit is contained in:
Alibek Omarov 2025-01-30 18:52:26 +03:00
parent f076d84975
commit f9d4ac2771

View file

@ -247,8 +247,16 @@ static void MakeSkyVec( float s, float t, int axis )
s = (s + 1.0f) * 0.5f;
t = (t + 1.0f) * 0.5f;
s = bound( 1.0f / 512.0f, s, 511.0f / 512.0f );
t = bound( 1.0f / 512.0f, t, 511.0f / 512.0f );
if( GL_Support( GL_CLAMPTOEDGE_EXT ))
{
s = bound( 0.0f, s, 1.0f );
t = bound( 0.0f, t, 1.0f );
}
else
{
s = bound( 1.0f / 512.0f, s, 511.0f / 512.0f );
t = bound( 1.0f / 512.0f, t, 511.0f / 512.0f );
}
t = 1.0f - t;