Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 18, 2016, 10:12:53 PM (8 years ago)
Author:
landauf
Message:

merged branch 'shaders' into branch 'shaders_merge'

Location:
code/branches/shaders_merge
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/shaders_merge

  • code/branches/shaders_merge/src/orxonox/graphics/LensFlare.cc

    r11072 r11073  
    4545namespace orxonox
    4646{
    47     CreateFactory(LensFlare);
     47    RegisterClass(LensFlare);
    4848   
    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))
    5050    {
    5151        RegisterObject(LensFlare);
     
    9494    void LensFlare::createBillboards()
    9595    {
    96         this->occlusionBillboard_ = new Billboard(this);
     96        this->occlusionBillboard_ = new Billboard(this->getContext());
    9797        this->occlusionBillboard_->setMaterial("lensflare/hoq");
    9898        this->occlusionBillboard_->setVisible(false);
     
    102102       
    103103        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());
    105105            lensPart->setMaterial(*(*it)->material_);
    106106            lensPart->disableFrustumCulling();
Note: See TracChangeset for help on using the changeset viewer.