mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-27 08:23:08 +00:00
Euclidean sky as a shape
This commit is contained in:
1 parent
88d6c0d144
commit
baa1871d01
3 files changed
+18
-13
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user