Files
UnrealEngine/Engine/Source/Runtime/Renderer/Public/MeshEdges.h
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "Templates/Function.h"
class FSceneView;
class FSceneViewFamily;
struct FMeshEdgesViewSettings
{
// Opacity of the wireframe blended with the shaded view.
float Opacity = 1.0;
};
// Retrieve settings for how MeshEdges should be rendered for the specified view.
// The returned object reference is owned by the ViewFamily and may be invalidated
// when the number of views changes. Do not cache.
RENDERER_API const FMeshEdgesViewSettings& GetMeshEdgesViewSettings(const FSceneView& View);
RENDERER_API FMeshEdgesViewSettings& GetMeshEdgesViewSettings(FSceneView& View);
struct FMeshEdgesViewFamilySettings
{
TFunction<void(FSceneViewFamily& WireframeViewFamily)> OnBeforeWireframeRender = [](auto&){};
};
RENDERER_API const FMeshEdgesViewFamilySettings& GetMeshEdgesViewFamilySettings(const FSceneViewFamily& ViewFamily);
RENDERER_API FMeshEdgesViewFamilySettings& GetMeshEdgesViewFamilySettings(FSceneViewFamily& ViewFamily);