Add shader getter to IMaterial interface

This commit is contained in:
Wojciech Figat
2022-05-12 13:47:19 +02:00
parent 69b9c1b9ee
commit f7e48d9b23
14 changed files with 45 additions and 3 deletions

View File

@@ -22,6 +22,11 @@ const MaterialInfo& LODPreviewMaterialShader::GetInfo() const
return _material->GetInfo();
}
GPUShader* LODPreviewMaterialShader::GetShader() const
{
return _material->GetShader();
}
bool LODPreviewMaterialShader::IsReady() const
{
return _material && _material->IsReady();