Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 10, 2006, 12:09:58 AM (18 years ago)
Author:
bensch
Message:

Water draws itself

File:
1 edited

Legend:

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

    r6453 r6456  
    264264      for (j = 0; j < resolutionX; j++)
    265265        {
    266           this->addVertex((float)i - (float)sizeY/2.0, 0.0, (float)j - (float)sizeX/2.0);
     266          this->addVertex(((float)i - (float)resolutionY/2.0)*sizeY, 0.0, ((float)j - (float)resolutionX/2.0)*sizeX);
    267267          this->addNormal(0.0, 1, 0.0);
    268268          this->addTexCoor((float)i/(float)resolutionY, (float)j/(float)resolutionY);
Note: See TracChangeset for help on using the changeset viewer.