Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/MaterialShared.h |
Include |
#include "MaterialShared.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp |
const FMaterial & GetMaterialWithFallback
(
ERHIFeatureLevel::Type InFeatureLevel,
const FMaterialRenderProxy *& OutFallbackMaterialRenderProxy
) const
Finds the FMaterial to use for rendering this FMaterialRenderProxy. Will fall back to a default material if needed due to a content error, or async compilation. The returned FMaterial is guaranteed to have a complete shader map, so all relevant shaders should be availiable OutFallbackMaterialRenderProxy - The proxy that coorisponds to the returned FMaterial, should be used for further rendering. May be a fallback material, or 'this' if no fallback was needed