mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
fix texture edge bleeding due to wrong addressing mode
This commit is contained in:
parent
64210e6efa
commit
ade4ec0453
@ -1019,7 +1019,8 @@ VideoPlayer::VideoPlayer(Ogre::SceneManager* sceneMgr)
|
|||||||
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
|
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->setLightingEnabled(false);
|
mVideoMaterial->getTechnique(0)->getPass(0)->setLightingEnabled(false);
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState();
|
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState();
|
||||||
}
|
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP);
|
||||||
|
}
|
||||||
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName("black.png");
|
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName("black.png");
|
||||||
|
|
||||||
Ogre::MaterialPtr blackMaterial = Ogre::MaterialManager::getSingleton().getByName("BlackBarsMaterial", "General");
|
Ogre::MaterialPtr blackMaterial = Ogre::MaterialManager::getSingleton().getByName("BlackBarsMaterial", "General");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user