- Timestamp:
- Jan 18, 2016, 10:12:53 PM (8 years ago)
- Location:
- code/branches/shaders_merge
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/shaders_merge
- Property svn:mergeinfo changed
/code/branches/shaders (added) merged: 9379,9395,9401-9403,9407,9409,9419-9420,9422-9423,9426,9428,9433,9445-9446,9448,9461-9462,9464,9466,9491-9492,9500,9504,9510-9511
- Property svn:mergeinfo changed
-
code/branches/shaders_merge/src/orxonox/graphics/LensFlare.cc
r11072 r11073 45 45 namespace orxonox 46 46 { 47 CreateFactory(LensFlare);47 RegisterClass(LensFlare); 48 48 49 LensFlare::LensFlare( BaseObject* creator) : StaticEntity(creator), scale_(1.0f), fadeOnViewBorder_(true), fadeResolution_(7), fadeExponent_(2.0f), colour_(new ColourValue(1.0f,0.9f,0.9f))49 LensFlare::LensFlare(Context* context) : StaticEntity(context), scale_(1.0f), fadeOnViewBorder_(true), fadeResolution_(7), fadeExponent_(2.0f), colour_(new ColourValue(1.0f,0.9f,0.9f)) 50 50 { 51 51 RegisterObject(LensFlare); … … 94 94 void LensFlare::createBillboards() 95 95 { 96 this->occlusionBillboard_ = new Billboard(this );96 this->occlusionBillboard_ = new Billboard(this->getContext()); 97 97 this->occlusionBillboard_->setMaterial("lensflare/hoq"); 98 98 this->occlusionBillboard_->setVisible(false); … … 102 102 103 103 for(std::vector<LensFlare::Lens*>::iterator it = lensConfiguration_->begin(); it != lensConfiguration_->end(); ++it) { 104 Billboard* lensPart=new Billboard(this );104 Billboard* lensPart=new Billboard(this->getContext()); 105 105 lensPart->setMaterial(*(*it)->material_); 106 106 lensPart->disableFrustumCulling();
Note: See TracChangeset
for help on using the changeset viewer.