Added Material::HasCustomShaderProgram
Former-commit-id: bdd119b41d5312a65aec2d781a78283343ef4b4c
This commit is contained in:
parent
059ea21b41
commit
a8ab9e2c74
|
|
@ -78,6 +78,7 @@ class NAZARA_API NzMaterial : public NzResource
|
||||||
nzBlendFunc GetSrcBlend() const;
|
nzBlendFunc GetSrcBlend() const;
|
||||||
|
|
||||||
bool HasAlphaMap() const;
|
bool HasAlphaMap() const;
|
||||||
|
bool HasCustomShaderProgram(nzShaderTarget target, nzUInt32 flags) const;
|
||||||
bool HasDiffuseMap() const;
|
bool HasDiffuseMap() const;
|
||||||
bool HasEmissiveMap() const;
|
bool HasEmissiveMap() const;
|
||||||
bool HasHeightMap() const;
|
bool HasHeightMap() const;
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,11 @@ bool NzMaterial::HasAlphaMap() const
|
||||||
return m_alphaMap.IsValid();
|
return m_alphaMap.IsValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool NzMaterial::HasCustomShaderProgram(nzShaderTarget target, nzUInt32 flags) const
|
||||||
|
{
|
||||||
|
return m_programs[target][flags].custom;
|
||||||
|
}
|
||||||
|
|
||||||
bool NzMaterial::HasDiffuseMap() const
|
bool NzMaterial::HasDiffuseMap() const
|
||||||
{
|
{
|
||||||
return m_diffuseMap.IsValid();
|
return m_diffuseMap.IsValid();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue