- Timestamp:
- May 11, 2005, 11:22:00 PM (20 years ago)
- Location:
- orxonox/branches/shadows/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/shadows/src/shadow.cc
r4008 r4170 56 56 } 57 57 58 void Shadow::init(GLuint ground_id_imported )58 void Shadow::init(GLuint ground_id_imported,Material* boden) 59 59 { 60 60 … … 65 65 66 66 67 this->mat=new Material("Ground"); 68 this->mat->setDiffuseMap("../data/pictures/ground.tga"); 69 this->mat->setIllum(3); 67 //this->mat=new Material("Ground"); 68 //this->mat->setDiffuseMap("../data/pictures/ground.tga"); 69 //this->mat->setIllum(3); 70 this->mat=boden; 70 71 71 72 glClearDepth(1); -
orxonox/branches/shadows/src/shadow.h
r3839 r4170 51 51 Shadow(OBJModel* player,Player* playerangle); 52 52 ~Shadow(); 53 void init(GLuint ground_id );53 void init(GLuint ground_id,Material* boden); 54 54 void createShadow(); 55 55 void draw(); -
orxonox/branches/shadows/src/world.cc
r4008 r4170 400 400 401 401 // Initializing the Ground, and loading a Texture into it. 402 //Material* boden = new Material("Ground");403 //boden->setDiffuseMap("../data/pictures/ground.tga");402 Material* boden = new Material("Ground"); 403 boden->setDiffuseMap("../data/pictures/ground.tga"); 404 404 // Setting the illumination mode otherwise it is flat-shaded. 405 //boden->setIllum(3);405 boden->setIllum(3); 406 406 //boden->select(); 407 407 int sizeX = 100; … … 524 524 525 525 glEndList(); 526 shadow->init(objectList );526 shadow->init(objectList,boden); 527 527 528 528 }
Note: See TracChangeset
for help on using the changeset viewer.