Changeset 7976 for code/branches/usability/src/orxonox
- Timestamp:
- Feb 27, 2011, 1:05:59 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/orxonox/items/Engine.cc
r7547 r7976 207 207 { 208 208 this->boostBlur_ = new Shader(this->ship_->getScene()->getSceneManager()); 209 this->boostBlur_->setCompositor ("Radial Blur");209 this->boostBlur_->setCompositorName("Radial Blur"); 210 210 } 211 211 212 212 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)); 214 214 } 215 215
Note: See TracChangeset
for help on using the changeset viewer.