From b785a0a7cc07507b3e72c9adb132b6c2ff12c464 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 25 May 2020 02:27:23 +0200 Subject: [PATCH] frustum_culling can now be disabled --- graph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 7997a325..8005a503 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3660,10 +3660,12 @@ EX ld mousedist(transmatrix T) { vector clipping_planes; EX int noclipped; +EX bool frustum_culling = true; + void make_clipping_planes() { #if MAXMDIM >= 4 clipping_planes.clear(); - if(PIU(sphere) || experimental || vid.stereo_mode == sODS) return; + if(!frustum_culling || 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);