Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3895 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Apr 19, 2005, 6:56:16 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: more logic in adding face with the numerical adder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skybox.cc

    r3807 r3895  
    188188
    189189  model->addUseMtl(material[0]);
    190   model->addFace (4, 3, 3,2,4, 4,3,4, 6,4,4, 5,1,4); // top
     190  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 3,2,4, 4,3,4, 6,4,4, 5,1,4); // top
    191191  model->addUseMtl(material[1]);
    192   model->addFace (4, 3, 7,4,2, 8,1,2, 2,2,2, 1,3,2); // bottom
     192  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 7,4,2, 8,1,2, 2,2,2, 1,3,2); // bottom
    193193  model->addUseMtl(material[2]);
    194   model->addFace (4, 3, 1,1,3, 2,2,3, 4,3,3, 3,4,3); // left
     194  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 1,1,3, 2,2,3, 4,3,3, 3,4,3); // left
    195195  model->addUseMtl(material[3]);
    196   model->addFace (4, 3, 5,3,1, 6,4,1, 8,1,1, 7,2,1); // right
     196  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 5,3,1, 6,4,1, 8,1,1, 7,2,1); // right
    197197  model->addUseMtl(material[4]);
    198   model->addFace (4, 3, 2,1,6, 8,2,6, 6,3,6, 4,4,6); // front
     198  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 2,1,6, 8,2,6, 6,3,6, 4,4,6); // front
    199199  model->addUseMtl(material[5]);
    200   model->addFace (4, 3, 7,1,5, 1,2,5, 3,3,5, 5,4,5); // back
     200  model->addFace (4, VERTEX_TEXCOORD_NORMAL, 7,1,5, 1,2,5, 3,3,5, 5,4,5); // back
    201201 
    202202  model->finalize();
Note: See TracChangeset for help on using the changeset viewer.