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

3d:: native perspective is now pmodel == mdPerspective, and other models work too

This commit is contained in:
Zeno Rogue
2019-03-20 02:10:53 +01:00
parent 1d1baf2207
commit 46ae64e945
9 changed files with 77 additions and 39 deletions

View File

@@ -496,7 +496,7 @@ vector<glvertex> line_vertices;
void glapplymatrix(const transmatrix& V) {
GLfloat mat[16];
int id = 0;
if(DIM == 3) {
if(pmodel == mdPerspective && DIM == 3) {
if(elliptic && spherephase < 2) {
for(int y=0; y<4; y++) {
for(int x=0; x<4; x++) mat[id++] = -V[x][y];