UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MaterialExpressionFirstPersonOutput.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 "MaterialExpressionFirstPersonOutput.generated.h"
9
13{
15
16
17 UPROPERTY(meta = (RequiredInput = "false", ToolTip = "Interpolates between world space and first person space. Valid range is [0, 1], from world space to first person space. Defaults to 'ConstFirstPersonInterpolationAlpha' if not specified."))
18 FExpressionInput FirstPersonInterpolationAlpha;
19
21 UPROPERTY(EditAnywhere, Category = "First Person", meta = (OverridingInputProperty = "FirstPersonInterpolationAlpha", UIMin = 0.0f, UIMax = 1.0f, ClampMin = 0.0f, ClampMax = 1.0f))
22 float ConstFirstPersonInterpolationAlpha = 1.0f;
23
24public:
25#if WITH_EDITOR
26 //~ Begin UMaterialExpression Interface
27 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
28 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
29
30 //~ End UMaterialExpression Interface
31#endif
32
33 //~ Begin UMaterialExpressionCustomOutput Interface
34 virtual int32 GetNumOutputs() const override;
35 virtual FString GetFunctionName() const override;
36 virtual FString GetDisplayName() const override;
37#if WITH_EDITOR
38 virtual bool NeedsPreviousFrameEvaluation() override { return true; }
39 virtual EShaderFrequency GetShaderFrequency(uint32 OutputIndex) override { return SF_Vertex; }
40#endif
41 //~ End UMaterialExpressionCustomOutput Interface
42};
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
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
EShaderFrequency
Definition RHIDefinitions.h:202
@ SF_Vertex
Definition RHIDefinitions.h:203
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MaterialCompiler.h:109
Definition Array.h:670
Definition MaterialExpressionCustomOutput.h:15
Definition MaterialExpressionFirstPersonOutput.h:13
Definition MaterialExpressionIO.h:23