fix gl skydome "cap"
so turns out the texture coords for the dome cap were never initialized at all, which is what caused the weird "stretchy & stripey" effect at times just init it to the sky textures middle
This commit is contained in:
1 parent
331d593008
commit
10e4151ecf
1 file changed
+5
@@ -5681,6 +5681,11 @@ static void HWR_SkyDomeVertex(gl_sky_t *sky, gl_skyvertex_t *vbo, int r, int c,
|
||||
else
|
||||
vbo->v = 1.0f + ((float)(sky->rows - r) / (float)sky->rows) + 0.5f;
|
||||
}
|
||||
else
|
||||
{
|
||||
vbo->u = 0.5f / sky->width;
|
||||
vbo->v = 0.5f / sky->height;
|
||||
}
|
||||
|
||||
if (r != 4)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user