Euclidean sky as a shape

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:03 +02:00
1 parent 88d6c0d144
commit baa1871d01
3 files changed
+18 -13

No files matched your search

+1 -11
View File
@@ -4622,17 +4622,7 @@ void draw_euclidean_sky() {
if(WDIM == 3 || GDIM == 2) return;
transmatrix T = ggmatrix(currentmap->gamestart());
T = gpushxto0(tC0(T)) * T;
for(int x=-20; x<20; x++)
for(int y=-20; y<20; y++) {
curvepoint(T * zpush(cgi.WALL) * hpxy(x, y));
curvepoint(T * zpush(cgi.WALL) * hpxy(x, y+1));
curvepoint(T * zpush(cgi.WALL) * hpxy(x+1, y));
curvepoint(T * zpush(cgi.WALL) * hpxy(x+1, y+1));
curvepoint(T * zpush(cgi.WALL) * hpxy(x, y+1));
curvepoint(T * zpush(cgi.WALL) * hpxy(x+1, y));
}
queuecurve(0, 0x0044e4FF, PPR::EUCLIDEAN_SKY).flags |= POLY_TRIANGLES;
queuepoly(T, cgi.shEuclideanSky, 0x0044e4FF);
queuepolyat(T * zpush(cgi.SKY+0.5) * xpush(cgi.SKY+0.5), cgi.shSun, 0xFFFF00FF, PPR::SKY);
}