Changeset 6266 in orxonox.OLD for branches/height_map/src/lib
- Timestamp:
- Dec 22, 2005, 7:24:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/lib/graphics/importer/vertex_array_model.cc
r6265 r6266 66 66 void VertexArrayModel::draw() const 67 67 { 68 PRINTF(4)("drawing the 3D-VertexArrayModels\n"); 69 glDisable(GL_LIGHTING); 70 68 PRINTF(4)("drawing 3D-VertexArrayModel %s\n", this->getName()); 71 69 glEnableClientState(GL_VERTEX_ARRAY ); 72 70 glEnableClientState(GL_TEXTURE_COORD_ARRAY ); … … 87 85 &this->indices[this->stripes[i-1]] ); 88 86 } 89 glEnable(GL_LIGHTING);90 87 } 91 88 … … 245 242 float cosPhi = std::cos(phi); 246 243 this->addVertex(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 247 this->addNormal( 1,1,1);248 this->addTexCoor(0,0); 249 this->addColor(.125,.436,.246); 244 this->addNormal(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 245 this->addTexCoor(0,0); /// FIXME 246 this->addColor(.125,.436,.246); ///FIXME 250 247 } 251 248 for (unsigned int loopNumber = 0; loopNumber <= loops; ++loopNumber) … … 264 261 float cosPhi = std::cos(phi); 265 262 this->addVertex(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 266 this->addNormal( 1,1,1);267 this->addTexCoor(0,0); 263 this->addNormal(radius * cosPhi * sinTheta, radius * sinPhi * sinTheta, radius * cosTheta); 264 this->addTexCoor(0,0); //FIXME 268 265 this->addColor(.125,.436,.246); 269 266
Note: See TracChangeset
for help on using the changeset viewer.