Ignore:
Timestamp:
Sep 10, 2010, 12:26:38 AM (10 years ago)
Author:
sam
Message:

Fix broken perspective.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tileset.cpp

    r186 r205  
    130130        glBindTexture(GL_TEXTURE_2D, data->texture);
    131131        glBegin(GL_QUADS);
     132            glTexCoord2f(tx, ty);
     133            glVertex3f(x, sqrt2 * (y - 38 - off), sqrt2 * (z + off));
     134            glTexCoord2f(tx + data->tx, ty);
     135            glVertex3f(x + 32, sqrt2 * (y - 38 - off), sqrt2 * (z + off));
     136            glTexCoord2f(tx + data->tx, ty + data->ty);
     137            glVertex3f(x + 32, sqrt2 * (y - 70), sqrt2 * z);
    132138            glTexCoord2f(tx, ty + data->ty);
    133             glVertex3f(x, sqrt2 * (y - 70 + off), sqrt2 * (z + off));
    134             glTexCoord2f(tx + data->tx, ty + data->ty);
    135             glVertex3f(x + 32, sqrt2 * (y - 70 + off), sqrt2 * (z + off));
    136             glTexCoord2f(tx + data->tx, ty);
    137             glVertex3f(x + 32, sqrt2 * (y - 38), sqrt2 * z);
    138             glTexCoord2f(tx, ty);
    139             glVertex3f(x, sqrt2 * (y - 38), sqrt2 * z);
     139            glVertex3f(x, sqrt2 * (y - 70), sqrt2 * z);
    140140        glEnd();
    141141    }
Note: See TracChangeset for help on using the changeset viewer.