mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-03 18:22:49 +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;
|
extern bool lshiftclick, lctrlclick;
|
||||||
|
|
||||||
void draw_main() {
|
void draw_main() {
|
||||||
if(sphere && DIM == 3) {
|
if(sphere && DIM == 3 && pmodel == mdPerspective) {
|
||||||
for(int p: {0, 1, 2, 3}) {
|
for(int p: {0, 1, 2, 3}) {
|
||||||
if(elliptic && p < 2) continue;
|
if(elliptic && p < 2) continue;
|
||||||
if(p == 1 || p == 3) {
|
if(p == 1 || p == 3) {
|
||||||
@ -1494,9 +1494,11 @@ void draw_main() {
|
|||||||
glClear(GL_DEPTH_BUFFER_BIT);
|
glClear(GL_DEPTH_BUFFER_BIT);
|
||||||
glhr::be_nontextured();
|
glhr::be_nontextured();
|
||||||
spherephase = p;
|
spherephase = p;
|
||||||
|
reset_projection();
|
||||||
for(auto& ptd: ptds) ptd->draw();
|
for(auto& ptd: ptds) ptd->draw();
|
||||||
if(elliptic) {
|
if(elliptic) {
|
||||||
spherephase = p - 2;
|
spherephase = p - 2;
|
||||||
|
reset_projection();
|
||||||
for(auto& ptd: ptds) ptd->draw();
|
for(auto& ptd: ptds) ptd->draw();
|
||||||
}
|
}
|
||||||
// glflush();
|
// glflush();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user