1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

2.5D:: fixed sky colors

This commit is contained in:
Zeno Rogue 2022-12-04 16:42:08 +01:00
parent cfc62c5ee0
commit 8a7b35e3ee

View File

@ -219,7 +219,7 @@ void compute_skyvertices(const vector<sky_item>& sky) {
for(int x=0; x<=prec; x++) for(int y=0; y<=prec; y++) if(x+y <= prec) {
hyperpoint h = ctr * (prec-x-y) + vertices[j] * x + vertices[j1] * y;
h = normalize(h);
color_t co = gradient(ccolor, gradient(vcolors[j], vcolors[j1], 0, y, x+y), prec, x+y, 0);
color_t co = gradient(ccolor, gradient(vcolors[j], vcolors[j1], 0, y, x+y), 0, x+y, prec);
// co = (hrand(0x1000000) << 8) | 0xFF;
// co = minecolors[(x+2*y) % 7] << 8 | 0xFF;
h = unshift(si.T) * orthogonal_move(h, cgi.SKY);