diff --git a/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.h b/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.h index 358987520df..8b346173040 100644 --- a/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.h +++ b/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.h @@ -105,6 +105,8 @@ namespace Ogre const HlmsBlendblock *blendblock, const HlmsParamVec ¶ms ); ~OGRE_HLMS_TEXTURE_BASE_CLASS() override; + void setAlphaTestThreshold( float threshold ) override; + void preload() override; void saveTextures( const String &folderPath, set::type &savedTextures, bool saveOitd, diff --git a/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.inl b/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.inl index a17195bcd6c..bb6ee2a9548 100644 --- a/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.inl +++ b/Components/Hlms/Common/include/OgreHlmsTextureBaseClass.inl @@ -99,6 +99,12 @@ namespace Ogre datablockImpl->scheduleConstBufferUpdate( hasDirtyTextures, hasDirtySamplers ); } //----------------------------------------------------------------------------------- + void OGRE_HLMS_TEXTURE_BASE_CLASS::setAlphaTestThreshold( float threshold ) + { + HlmsDatablock::setAlphaTestThreshold( threshold ); + scheduleConstBufferUpdate(); + } + //----------------------------------------------------------------------------------- void OGRE_HLMS_TEXTURE_BASE_CLASS::preload() { loadAllTextures(); } //----------------------------------------------------------------------------------- void OGRE_HLMS_TEXTURE_BASE_CLASS::saveTextures( const String &folderPath,