Add shader getter to IMaterial interface
This commit is contained in:
@@ -29,6 +29,11 @@ const MaterialInfo& MaterialComplexityMaterialShader::WrapperShader::GetInfo() c
|
||||
return Info;
|
||||
}
|
||||
|
||||
GPUShader* MaterialComplexityMaterialShader::WrapperShader::GetShader() const
|
||||
{
|
||||
return MaterialAsset->GetShader();
|
||||
}
|
||||
|
||||
bool MaterialComplexityMaterialShader::WrapperShader::IsReady() const
|
||||
{
|
||||
return MaterialAsset && MaterialAsset->IsReady();
|
||||
|
||||
Reference in New Issue
Block a user