Changeset 3839 in orxonox.OLD for orxonox/branches/shadows/src/world.cc
- Timestamp:
- Apr 15, 2005, 6:59:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/shadows/src/world.cc
r3760 r3839 453 453 normal_vectors[i][j]=c1.cross(v3-v5)+c2.cross(v4-v2)+c3.cross(v5-v3)+c4.cross(v2-v4); 454 454 normal_vectors[i][j].normalize(); 455 shadow->setNormal(normal_vectors[i][j],i,j); 455 456 456 } 457 457 … … 470 470 a[2]=.8; 471 471 glMaterialfv(GL_FRONT,GL_DIFFUSE,a); 472 shadow->setVertexNum(v1,i,j,0); 473 shadow->setVertexNum(v2,i,j,1); 474 shadow->setVertexNum(v3,i,j,2); 475 shadow->setVertexNum(v4,i,j,3); 476 472 477 473 478 474 … … 498 494 499 495 } 500 if(first){496 /*if(first){ 501 497 shadow->createGroundList(); 502 498 first=false; 503 } 499 }*/ 504 500 505 501 glEnd(); … … 528 524 529 525 glEndList(); 530 shadow->init( );526 shadow->init(objectList); 531 527 532 528 } … … 583 579 // draw entities 584 580 585 581 586 582 WorldEntity* entity; 587 583 entity = this->entities->enumerate(); 584 588 585 while( entity != NULL ) 589 586 { … … 598 595 //glLoadIdentity(); 599 596 600 glCallList (objectList);597 601 598 602 599 … … 604 601 605 602 glEnable(GL_TEXTURE_2D); 603 606 604 skysphere->draw(); 607 608 shadow->draw();605 shadow->draw(); 606 609 607 610 608
Note: See TracChangeset
for help on using the changeset viewer.