mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-30 19:04:51 +00:00
torus rendering no longer creates darker areas because of side difference
This commit is contained in:
parent
53a235a11f
commit
38411a9a8b
2
rug.cpp
2
rug.cpp
@ -484,7 +484,7 @@ void buildTorusRug() {
|
|||||||
for(int yy=0; yy<rugmax; yy++)
|
for(int yy=0; yy<rugmax; yy++)
|
||||||
for(int xx=0; xx<rugmax; xx++)
|
for(int xx=0; xx<rugmax; xx++)
|
||||||
addTriangle(rugarr[yy][xx], rugarr[yy+1][xx], rugarr[yy+1][xx+1], modelscale/rugmax),
|
addTriangle(rugarr[yy][xx], rugarr[yy+1][xx], rugarr[yy+1][xx+1], modelscale/rugmax),
|
||||||
addTriangle(rugarr[yy][xx], rugarr[yy][xx+1], rugarr[yy+1][xx+1], modelscale/rugmax);
|
addTriangle(rugarr[yy][xx+1], rugarr[yy][xx], rugarr[yy+1][xx+1], modelscale/rugmax);
|
||||||
}
|
}
|
||||||
|
|
||||||
double maxz = 0;
|
double maxz = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user