Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 27, 2011, 1:05:59 AM (14 years ago)
Author:
landauf
Message:

rewrote parameter changing implementation of Shader
added documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/src/orxonox/items/Engine.cc

    r7547 r7976  
    207207        {
    208208            this->boostBlur_ = new Shader(this->ship_->getScene()->getSceneManager());
    209             this->boostBlur_->setCompositor("Radial Blur");
     209            this->boostBlur_->setCompositorName("Radial Blur");
    210210        }
    211211
    212212        if (this->boostBlur_ && this->maxSpeedFront_ != 0 && this->boostFactor_ != 1)
    213             this->boostBlur_->setParameter("Ogre/Compositor/Radial_Blur", 0, 0, "sampleStrength", this->blurStrength_ * clamp((-velocity.z - this->maxSpeedFront_) / ((this->boostFactor_ - 1) * this->maxSpeedFront_), 0.0f, 1.0f));
     213            this->boostBlur_->setParameter(0, 0, "sampleStrength", this->blurStrength_ * clamp((-velocity.z - this->maxSpeedFront_) / ((this->boostFactor_ - 1) * this->maxSpeedFront_), 0.0f, 1.0f));
    214214    }
    215215
Note: See TracChangeset for help on using the changeset viewer.