Add shader getter to IMaterial interface
This commit is contained in:
@@ -143,6 +143,11 @@ const MaterialInfo& MaterialInstance::GetInfo() const
|
||||
return EmptyInfo;
|
||||
}
|
||||
|
||||
GPUShader* MaterialInstance::GetShader() const
|
||||
{
|
||||
return _baseMaterial ? _baseMaterial->GetShader() : nullptr;
|
||||
}
|
||||
|
||||
bool MaterialInstance::IsReady() const
|
||||
{
|
||||
return IsLoaded() && _baseMaterial && _baseMaterial->IsReady();
|
||||
|
||||
Reference in New Issue
Block a user