1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-15 13:17:13 +00:00

more precise torus-rug rendering

This commit is contained in:
Zeno Rogue
2017-11-07 14:39:26 +01:00
parent b5382c5670
commit f5a8b2a0c2
5 changed files with 85 additions and 69 deletions

View File

@@ -363,7 +363,7 @@ void drawrec(const heptspin& hs, int lev, hstate s, const transmatrix& V) {
int mindx=-7, mindy=-7, maxdx=7, maxdy=7;
transmatrix eumove(int x, int y) {
transmatrix eumove(ld x, ld y) {
transmatrix Mat = Id;
Mat[2][2] = 1;
Mat[0][2] += (x + y * .5) * eurad;