1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-04 12:49:43 +00:00

ODS in hyperbolic

This commit is contained in:
Zeno Rogue
2019-10-21 22:42:27 +02:00
parent 30eda241a8
commit c527d4e613
4 changed files with 148 additions and 49 deletions

View File

@@ -4568,7 +4568,7 @@ EX int noclipped;
void make_clipping_planes() {
#if MAXMDIM >= 4
clipping_planes.clear();
if(PIU(sphere) || experimental) return;
if(PIU(sphere) || experimental || vid.stereo_mode == sODS) return;
auto add_clipping_plane = [] (ld x1, ld y1, ld x2, ld y2) {
ld z1 = 1, z2 = 1;
hyperpoint sx = point3(y1 * z2 - y2 * z1, z1 * x2 - z2 * x1, x1 * y2 - x2 * y1);