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

fixed the errors caused by non_spatial_model giving incorrect results

This commit is contained in:
Zeno Rogue
2025-09-09 10:29:41 +02:00
parent c5ce82b2c7
commit 9b82538f04
3 changed files with 8 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ EX void camrotate(ld& hx, ld& hy) {
hx = p[0] / p[2], hy = p[1] / p[2];
}
/** Does the current model support 3D
* Warning: since it depends on get_shader_flags(), you may need to current_display->set_all(0,0) for it to work correctly.
*/
EX bool non_spatial_model() {
if(among(pmodel, mdRotatedHyperboles, mdJoukowsky, mdJoukowskyInverted, mdPolygonal, mdPolynomial))
return true;