Changeset 10074 in orxonox.OLD for branches/playability/src/world_entities/projectiles/lbolt.cc
- Timestamp:
- Dec 13, 2006, 10:33:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/lbolt.cc
r10063 r10074 29 29 #include "debug.h" 30 30 31 #include "static_model.h"32 33 31 34 32 #include "class_id_DEPRECATED.h" … … 58 56 this->rotationSpeed = 130; 59 57 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);63 this->mat->setDiffuse(1,1,1);64 this->mat->setIllum(3);65 this->mat->setDiffuseMap("maps/lbolt2.png");66 this->mat->setDiffuseMap("maps/lbolt2.png",1);67 dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat);68 dynamic_cast<StaticModel*>(this->getModel())->finalize();69 this->mat->select();70 71 58 this->halo = new Billboard(); 72 this->halo->setSize(. 5, .5);59 this->halo->setSize(.35, .35); 73 60 this->halo->setTexture("hbolt_halo.png"); 74 61 } … … 181 168 this->halo->draw(); 182 169 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();189 170 glPopMatrix(); 190 171
Note: See TracChangeset
for help on using the changeset viewer.