From 33380fba896abf6cf0ff92290b926e9fd270a96f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 15 Dec 2022 18:59:20 +0100 Subject: [PATCH] noniso skies --- drawing.cpp | 2 +- sky.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index cd48ecd9..48c7a7d7 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2456,7 +2456,7 @@ EX void drawqueue() { #endif #if MAXMDIM >= 4 && CAP_GL - if(embedded_plane && (hyperbolic || geom3::sph_in_euc()) && !vrhr::rendering()) make_air(); + if(embedded_plane && (hyperbolic || geom3::sph_in_euc() || geom3::euc_in_noniso() || geom3::hyp_in_solnih()) && !vrhr::rendering()) make_air(); #endif #if CAP_VR diff --git a/sky.cpp b/sky.cpp index 5eb23042..32ba84c2 100644 --- a/sky.cpp +++ b/sky.cpp @@ -69,7 +69,9 @@ EX void delete_sky() { void compute_skyvertices(const vector& sky) { skyvertices.clear(); if(!draw_sky) return; - if(vid.wall_height < 0 && geom3::euc_in_hyp()) return; /* just looks bad */ + if(vid.wall_height < 0 && geom3::euc_in_hyp()) return; /* just looks bad, hollow horospheres should not have sky */ + if(vid.wall_height < 0 && meuclid && geom3::ggclass() == gcNIH) return; /* same */ + if(among(geom3::ggclass(), gcSol, gcSolN)) return; /* errors */ int sk = get_skybrightness();