Changeset 6766 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Jan 26, 2006, 12:54:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/vertex_array_model.cc
r6695 r6766 264 264 for (j = 0; j < resolutionX; j++) 265 265 { 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); 267 269 this->addNormal(0.0, 1, 0.0); 268 this->addTexCoor((float)i/(float)resolution Y, (float)j/(float)resolutionY);270 this->addTexCoor((float)i/(float)resolutionX, (float)j/(float)resolutionY); 269 271 this->addColor((float)i/20.0, 0.0, (float)j/20.0); 270 272 }
Note: See TracChangeset
for help on using the changeset viewer.