Skip to content

Commit

Permalink
Fix image display wrapping (#1038)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Oct 25, 2023
1 parent d02d94f commit bd95f1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Ogre::MaterialPtr CameraDisplay::createMaterial(std::string name) const
material->getTechnique(0)->getPass(0)->createTextureUnitState();
tu->setTextureName(texture_->getTexture()->getName());
tu->setTextureFiltering(Ogre::TFO_NONE);
tu->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP);
tu->setAlphaOperation(Ogre::LBX_SOURCE1, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, 0.0);

return material;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ void ImageDisplay::setupScreenRectangle()
material_->getTechnique(0)->getPass(0)->createTextureUnitState();
tu->setTextureName(texture_->getName());
tu->setTextureFiltering(Ogre::TFO_NONE);
tu->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP);

material_->setCullingMode(Ogre::CULL_NONE);
Ogre::AxisAlignedBox aabInf;
Expand Down

0 comments on commit bd95f1f

Please sign in to comment.