ref: gl: fix ugly seam at the skybox, thanks Spoike for help
This commit is contained in:
parent
f076d84975
commit
f9d4ac2771
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue