Remove Material::EnableAlphaTest (superseded by conditions)

This commit is contained in:
Jérôme Leclercq
2021-01-03 10:48:47 +01:00
parent ef1f4c770a
commit a801754f6e
5 changed files with 14 additions and 33 deletions

View File

@@ -9,6 +9,20 @@
namespace Nz
{
/*!
* \brief Enable/Disable alpha test for this material
*
* When enabled, all objects using this material will be rendered using alpha testing,
* rejecting pixels if their alpha component is under a defined threshold.
* This allows some kind of transparency with a much cheaper cost as it doesn't prevent any optimization (as deferred rendering or batching).
*
* \param alphaTest Defines if this material will use alpha testing
*
* \remark Invalidates the pipeline
*
* \see IsAlphaTestEnabled
* \see SetAlphaThreshold
*/
inline void BasicMaterial::EnableAlphaTest(bool alphaTest)
{
NazaraAssert(HasAlphaTest(), "Material has no alpha test condition");