EMaterialShadingModel

Specifies the overal rendering/shading model for a material

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#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_NUM,
    MSM_FromMaterialExpression,
    MSM_MAX,
}

Values

Name

Description

MSM_Unlit

MSM_DefaultLit

MSM_Subsurface

MSM_PreintegratedSkin

MSM_ClearCoat

MSM_SubsurfaceProfile

MSM_TwoSidedFoliage

MSM_Hair

MSM_Cloth

MSM_Eye

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

Remarks

Specifies the overal rendering/shading model for a material

Check UMaterialInstance::Serialize if changed!

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback