Refactored Material interface

Former-commit-id: 9a00be1b73b2c879fc77c9fdddc0192baa241fda
This commit is contained in:
Lynix
2013-06-18 00:37:40 +02:00
parent 7a45ff4884
commit 88d3ec1ad1
3 changed files with 50 additions and 59 deletions

View File

@@ -101,7 +101,7 @@ void NzForwardRenderQueue::AddModel(const NzModel* model)
case nzAnimationType_Static:
{
NzStaticMesh* staticMesh = static_cast<NzStaticMesh*>(subMesh);
if (material->IsAlphaBlendingEnabled())
if (material->IsEnabled(nzRendererParameter_Blend))
{
unsigned int index = transparentStaticModels.size();
transparentStaticModels.resize(index+1);