Skip to content

Commit

Permalink
Fix PBS warning when enabling transparency through alpha hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Aug 4, 2024
1 parent dca8d56 commit 8c5bf3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Components/Hlms/Pbs/src/OgreHlmsPbsDatablock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,12 +858,12 @@ namespace Ogre
"' disabling transparency but forcing a blendblock to"
" keep using alpha blending. Performance will be affected." );
}
else if( mTransparencyMode != None && !mBlendblock[0]->mIsTransparent )
else if( mTransparencyMode != None && !mBlendblock[0]->mIsTransparent && !mAlphaHashing )
{
LogManager::getSingleton().logMessage(
"WARNING: PBS Datablock '" + *getNameStr() +
"' enabling transparency but forcing a blendblock to avoid"
" alpha blending. Results may not look as expected." );
"' enabling transparency but forcing a blendblock to avoid alpha blending "
"(and alpha hashing is also disabled). Results may not look as expected." );
}
}

Expand Down

0 comments on commit 8c5bf3a

Please sign in to comment.