Remove Material::EnableAlphaTest (superseded by conditions)
This commit is contained in:
@@ -53,27 +53,6 @@ namespace Nz
|
||||
InvalidatePipeline();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \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 Material::EnableAlphaTest(bool alphaTest)
|
||||
{
|
||||
m_pipelineInfo.alphaTest = alphaTest;
|
||||
|
||||
InvalidatePipeline();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Enable/Disable blending for this material
|
||||
*
|
||||
@@ -489,15 +468,6 @@ namespace Nz
|
||||
return m_pipelineInfo.hasVertexColor;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Checks whether this material has alpha test enabled
|
||||
* \return true If it is the case
|
||||
*/
|
||||
inline bool Material::IsAlphaTestEnabled() const
|
||||
{
|
||||
return m_pipelineInfo.alphaTest;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Checks whether this material has blending enabled
|
||||
* \return true If it is the case
|
||||
|
||||
Reference in New Issue
Block a user