Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CustomDepthParameters.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
5#include <Components/PrimitiveComponent.h>
6#include <CoreMinimal.h>
7
8#include "CustomDepthParameters.generated.h"
9
10USTRUCT(BlueprintType)
11struct CESIUMRUNTIME_API FCustomDepthParameters {
12 GENERATED_USTRUCT_BODY()
13
14public:
17 UPROPERTY(
18 EditAnywhere,
19 AdvancedDisplay,
20 BlueprintReadOnly,
21 Category = Rendering,
22 meta = (DisplayName = "Render CustomDepth Pass"))
23 bool RenderCustomDepth = false;
24
26 UPROPERTY(
27 EditAnywhere,
28 AdvancedDisplay,
29 BlueprintReadOnly,
30 Category = "Rendering",
31 meta = (EditCondition = "RenderCustomDepth"))
32 ERendererStencilMask CustomDepthStencilWriteMask =
33 ERendererStencilMask::ERSM_Default;
34
37 UPROPERTY(
38 EditAnywhere,
39 AdvancedDisplay,
40 BlueprintReadOnly,
41 Category = Rendering,
42 meta = (UIMin = "0", UIMax = "255", EditCondition = "RenderCustomDepth"))
43 int32 CustomDepthStencilValue = 0;
44
45 bool operator==(const FCustomDepthParameters& other) const {
46 return RenderCustomDepth == other.RenderCustomDepth &&
47 CustomDepthStencilWriteMask == other.CustomDepthStencilWriteMask &&
48 CustomDepthStencilValue == other.CustomDepthStencilValue;
49 }
50
51 bool operator!=(const FCustomDepthParameters& other) const {
52 return !(*this == other);
53 }
54};
bool operator!=(const FCustomDepthParameters &other) const
bool RenderCustomDepth
If true, this component will be rendered in the CustomDepth pass (usually used for outlines)