Added Material::HasCustomShaderProgram

Former-commit-id: bdd119b41d5312a65aec2d781a78283343ef4b4c
This commit is contained in:
Lynix 2013-08-03 17:14:30 +02:00
parent 059ea21b41
commit a8ab9e2c74
2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,7 @@ class NAZARA_API NzMaterial : public NzResource
nzBlendFunc GetSrcBlend() const;
bool HasAlphaMap() const;
bool HasCustomShaderProgram(nzShaderTarget target, nzUInt32 flags) const;
bool HasDiffuseMap() const;
bool HasEmissiveMap() const;
bool HasHeightMap() const;

View File

@ -289,6 +289,11 @@ bool NzMaterial::HasAlphaMap() const
return m_alphaMap.IsValid();
}
bool NzMaterial::HasCustomShaderProgram(nzShaderTarget target, nzUInt32 flags) const
{
return m_programs[target][flags].custom;
}
bool NzMaterial::HasDiffuseMap() const
{
return m_diffuseMap.IsValid();