1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-04 11:19:04 +00:00

backandfront projection option

This commit is contained in:
Zeno Rogue
2021-09-18 01:39:09 +02:00
parent a7ddaae7d4
commit 96c143da8e
4 changed files with 18 additions and 0 deletions

View File

@@ -2277,6 +2277,16 @@ EX void set_vr_sphere() {
EX void draw_main() {
DEBBI(DF_GRAPH, ("draw_main"));
if(pconf.back_and_front == 1 && vid.consider_shader_projection) {
dynamicval<int> pa(pconf.back_and_front);
pconf.back_and_front = 0;
draw_main();
pconf.back_and_front = 2;
reset_projection();
draw_main();
return;
}
set_vr_sphere();
if(sphere && GDIM == 3 && pmodel == mdPerspective && !stretch::in() && !ray::in_use) {