mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: fix ugly seam at the skybox, thanks Spoike for help
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user