1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-13 13:09:43 +00:00

magic adjustment of textures

This commit is contained in:
Zeno Rogue
2017-12-16 09:03:50 +01:00
parent e2080cd91e
commit bf24550e82
6 changed files with 164 additions and 27 deletions

View File

@@ -329,6 +329,10 @@ bool confusingGeometry() {
return elliptic || quotient == 1 || torus;
}
transmatrix actualV(const heptspin& hs, const transmatrix& V) {
return (hs.spin || nontruncated) ? V * spin(hs.spin*2*M_PI/S7 + (nontruncated ? M_PI:0)) : V;
}
void drawrec(const heptspin& hs, int lev, hstate s, const transmatrix& V) {
// shmup::calc_relative_matrix(cwt.c, hs.h);
@@ -340,8 +344,7 @@ void drawrec(const heptspin& hs, int lev, hstate s, const transmatrix& V) {
if(dodrawcell(c)) {
reclevel = maxreclevel - lev;
drawcell(c, (hs.spin || nontruncated) ? V1 * spin(hs.spin*2*M_PI/S7 + (nontruncated ? M_PI:0)) : V1, 0,
hs.mirrored);
drawcell(c, actualV(hs, V1), 0, hs.mirrored);
}
if(lev <= 0) return;