took me a while to realise the skydome starts at the equator, not a pole.

I hope I got this right
This commit is contained in:
Bill Currie 2000-06-29 23:51:02 +00:00
parent 750457b368
commit fb9e8d05b4

View file

@ -689,10 +689,14 @@ R_DrawSkyLayer (float s)
a2y = -bubble_sintable[a+1];
glBegin (GL_TRIANGLE_STRIP);
for (b = 0; b <= 16; b++)
glTexCoord2f(0.5,0.5);
glVertex3f(r_refdef.vieworg[0],
r_refdef.vieworg[1],
r_refdef.vieworg[2]+domescale[2])
for (b = 1; b < 16; b++)
{
x = bubble_costable[b];
y = -bubble_sintable[b];
x = bubble_costable[b+16];
y = -bubble_sintable[b+16];
v[0] = a1x*x * domescale[0];
v[1] = a1y*x * domescale[1];
@ -712,6 +716,10 @@ R_DrawSkyLayer (float s)
v[1] + r_refdef.vieworg[1],
v[2] + r_refdef.vieworg[2]);
}
glTexCoord2f(0.5,0.5);
glVertex3f(r_refdef.vieworg[0],
r_refdef.vieworg[1],
r_refdef.vieworg[2]-domescale[2])
glEnd ();
}
}