Skip to content

Commit

Permalink
Recommend mAlphaToCoverage = A2cEnabledMsaaOnly when using Alpha Hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Aug 5, 2024
1 parent 537e05e commit ea477ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OgreMain/include/OgreHlmsDatablock.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,13 @@ namespace Ogre
For best results:
@code
// Disable alpha test (default)
// Disable alpha test (default).
datablock->setAlphaTest( CMPF_ALWAYS_PASS );
// Do NOT enable alpha blending in the HlmsBlendblock (default)
// Do NOT enable alpha blending in the HlmsBlendblock (default).
HlmsBlendblock blendblock;
blendblock.setBlendType( SBT_REPLACE );
// Recommended: Enable A2C when using MSAA.
blendblock.mAlphaToCoverage = Ogre::HlmsBlendblock::A2cEnabledMsaaOnly;
datablock->setBlendblock( blendblock );
datablock->setAlphaHashing( true );
Expand Down

0 comments on commit ea477ac

Please sign in to comment.