Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6766 in orxonox.OLD for trunk/src/lib/graphics/importer


Ignore:
Timestamp:
Jan 26, 2006, 12:54:16 PM (19 years ago)
Author:
bensch
Message:

trunk: splash splash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/vertex_array_model.cc

    r6695 r6766  
    264264      for (j = 0; j < resolutionX; j++)
    265265        {
    266           this->addVertex(((float)i - (float)resolutionY/2.0)*sizeY, 0.0, ((float)j - (float)resolutionX/2.0)*sizeX);
     266          this->addVertex( ((float)i - (float)resolutionX/2.0)/(float)resolutionX * sizeX,
     267                            0.0,
     268                            ((float)j - (float)resolutionY/2.0)/(float)resolutionY * sizeY);
    267269          this->addNormal(0.0, 1, 0.0);
    268           this->addTexCoor((float)i/(float)resolutionY, (float)j/(float)resolutionY);
     270          this->addTexCoor((float)i/(float)resolutionX, (float)j/(float)resolutionY);
    269271          this->addColor((float)i/20.0, 0.0, (float)j/20.0);
    270272        }
Note: See TracChangeset for help on using the changeset viewer.