UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionShadingModel.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "MaterialExpressionShadingModel.generated.h"
9
11
22
25{
27
28 //~ Begin UMaterialExpression Interface
29#if WITH_EDITOR
30 virtual void Build(MIR::FEmitter& Emitter) override;
31 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
32 virtual int32 CompilePreview(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
33 virtual EMaterialValueType GetOutputValueType(int32 OutputIndex) override;
34 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
35#endif
36public:
37 UPROPERTY(EditAnywhere, Category=ShadingModel, meta=(ValidEnumValues="MSM_DefaultLit, MSM_Subsurface, MSM_PreintegratedSkin, MSM_ClearCoat, MSM_SubsurfaceProfile, MSM_TwoSidedFoliage, MSM_Hair, MSM_Cloth, MSM_Eye", ShowAsInputPin = "Primary"))
39 //~ End UMaterialExpression Interface
40};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EMaterialShadingModel
Definition EngineTypes.h:705
ENGINE_API int32 CompileShadingModelBlendFunction(FMaterialCompiler *Compiler, int32 A, int32 B, int32 Alpha)
Definition MaterialExpressions.cpp:741
EMaterialValueType
Definition MaterialValueType.h:15
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition EnumAsByte.h:22
Definition MaterialExpressionShadingModel.h:25
Definition MaterialExpression.h:150