Changeset 10063 in orxonox.OLD for branches/playability/src/world_entities/projectiles/lbolt.cc
- Timestamp:
- Dec 13, 2006, 3:16:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/lbolt.cc
r10046 r10063 59 59 60 60 this->mat = new Material("lBolt"); 61 //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);62 this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE);61 this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); 62 //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE); 63 63 this->mat->setDiffuse(1,1,1); 64 this->mat->setDiffuseMap("lbolt.png"); 65 this->mat->setDiffuseMap("lbolt.png",1); 64 this->mat->setIllum(3); 65 this->mat->setDiffuseMap("maps/lbolt2.png"); 66 this->mat->setDiffuseMap("maps/lbolt2.png",1); 66 67 dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat); 67 68 dynamic_cast<StaticModel*>(this->getModel())->finalize(); 69 this->mat->select(); 70 71 this->halo = new Billboard(); 72 this->halo->setSize(.5, .5); 73 this->halo->setTexture("hbolt_halo.png"); 68 74 } 69 75 … … 167 173 float matrix[4][4]; 168 174 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 175 169 176 glRotatef(angle, 1.0, 0.0, 0.0); 170 177 this->getAbsDir().matrix (matrix); 171 178 glMultMatrixf((float*)matrix); 172 //this->getModel()->draw();179 this->getModel()->draw(); 173 180 174 this->mat->select(); 175 dynamic_cast<StaticModel*>(this->getModel())->draw(); 176 this->mat->select(); 177 dynamic_cast<StaticModel*>(this->getModel())->draw(); 178 this->mat->unselect(); 179 this->mat->unselect(); 181 this->halo->draw(); 182 183 // this->mat->select(); 184 // dynamic_cast<StaticModel*>(this->getModel())->draw(); 185 // this->mat->select(); 186 // dynamic_cast<StaticModel*>(this->getModel())->draw(); 187 // this->mat->unselect(); 188 // this->mat->unselect(); 180 189 glPopMatrix(); 181 190
Note: See TracChangeset
for help on using the changeset viewer.