2023-05-15 09:23:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "LocalHeightFogComponentVisualizer.h"
|
|
|
|
|
|
|
|
|
|
#include "Components/ActorComponent.h"
|
|
|
|
|
#include "Components/LocalHeightFogComponent.h"
|
2023-05-15 12:51:10 -04:00
|
|
|
#include "SceneView.h"
|
|
|
|
|
#include "SceneManagement.h"
|
2023-05-15 09:23:13 -04:00
|
|
|
|
|
|
|
|
void FLocalHeightFogComponentVisualizer::DrawVisualization( const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI )
|
|
|
|
|
{
|
|
|
|
|
if(View->Family->EngineShowFlags.CompositeEditorPrimitives)
|
|
|
|
|
{
|
|
|
|
|
const ULocalHeightFogComponent* LocalHeightFog = Cast<const ULocalHeightFogComponent>(Component);
|
|
|
|
|
if(LocalHeightFog != NULL)
|
|
|
|
|
{
|
|
|
|
|
FTransform LocalHeightFogTransform = LocalHeightFog->GetComponentTransform();
|
|
|
|
|
|
|
|
|
|
// Draw local fog volume spherical shape radius
|
|
|
|
|
DrawWireSphereAutoSides(PDI, LocalHeightFogTransform, FColor(200, 255, 255), 1.0f, SDPG_World);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|