Navigation
API > API/Runtime > API/Runtime/Engine
Specifies the overal rendering/shading model for a material
Check UMaterialInstance::Serialize if changed!
| Name | EMaterialShadingModel |
| Type | enum |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
enum EMaterialShadingModel
{
MSM_Unlit,
MSM_DefaultLit,
MSM_Subsurface,
MSM_PreintegratedSkin,
MSM_ClearCoat,
MSM_SubsurfaceProfile,
MSM_TwoSidedFoliage,
MSM_Hair,
MSM_Cloth,
MSM_Eye,
MSM_SingleLayerWater,
MSM_ThinTranslucent,
MSM_Strata,
MSM_NUM,
MSM_FromMaterialExpression,
MSM_MAX,
}
Values
| Name | Remarks |
|---|---|
| MSM_Unlit | |
| MSM_DefaultLit | |
| MSM_Subsurface | |
| MSM_PreintegratedSkin | |
| MSM_ClearCoat | |
| MSM_SubsurfaceProfile | |
| MSM_TwoSidedFoliage | |
| MSM_Hair | |
| MSM_Cloth | |
| MSM_Eye | |
| MSM_SingleLayerWater | |
| MSM_ThinTranslucent | |
| MSM_Strata | |
| MSM_NUM | Number of unique shading models. |
| MSM_FromMaterialExpression | Shading model will be determined by the Material Expression Graph, by utilizing the 'Shading Model' MaterialAttribute output pin. |
| MSM_MAX |