1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-11 06:45:59 +00:00

adjusted RogueViz to use the new 3D functions

This commit is contained in:
Zeno Rogue
2022-12-11 21:12:51 +01:00
parent aee6285505
commit 0dd29dd7cf
9 changed files with 18 additions and 18 deletions

View File

@@ -423,7 +423,7 @@ void show() {
}
void prepare_for_interpolation(hyperpoint& h) {
if(prod) {
if(gproduct) {
h[3] = zlevel(h);
ld t = exp(h[3]);
h[0] /= t;
@@ -433,7 +433,7 @@ void prepare_for_interpolation(hyperpoint& h) {
}
void after_interpolation(hyperpoint& h) {
if(prod) {
if(gproduct) {
ld v = exp(h[3]) / sqrt(abs(intval(h, Hypc)));
h[0] *= v;
h[1] *= v;