mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed drawing the sphere in natural perspective
This commit is contained in:
parent
78c4b9005f
commit
156f56feb0
@ -1472,7 +1472,7 @@ void draw_backside() {
|
||||
extern bool lshiftclick, lctrlclick;
|
||||
|
||||
void draw_main() {
|
||||
if(sphere && DIM == 3) {
|
||||
if(sphere && DIM == 3 && pmodel == mdPerspective) {
|
||||
for(int p: {0, 1, 2, 3}) {
|
||||
if(elliptic && p < 2) continue;
|
||||
if(p == 1 || p == 3) {
|
||||
@ -1494,9 +1494,11 @@ void draw_main() {
|
||||
glClear(GL_DEPTH_BUFFER_BIT);
|
||||
glhr::be_nontextured();
|
||||
spherephase = p;
|
||||
reset_projection();
|
||||
for(auto& ptd: ptds) ptd->draw();
|
||||
if(elliptic) {
|
||||
spherephase = p - 2;
|
||||
reset_projection();
|
||||
for(auto& ptd: ptds) ptd->draw();
|
||||
}
|
||||
// glflush();
|
||||
|
Loading…
Reference in New Issue
Block a user