You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526 [CL 16488106 by aurel cordonnier in ue5-main branch]
36 lines
1017 B
C++
36 lines
1017 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "ComponentVisualizer.h"
|
|
|
|
class FPrimitiveDrawInterface;
|
|
class FSceneView;
|
|
class UTextureLightProfile;
|
|
|
|
class FTextureLightProfileVisualizer
|
|
{
|
|
public:
|
|
FTextureLightProfileVisualizer();
|
|
|
|
void DrawVisualization(UTextureLightProfile* TextureLightProfile, const FTransform& LightTM, const FSceneView* View, FPrimitiveDrawInterface* PDI);
|
|
|
|
private:
|
|
bool UpdateIntensitiesCache(UTextureLightProfile* TextureLightProfile, const FTransform& LightTM);
|
|
|
|
const UTextureLightProfile* CachedLightProfile;
|
|
TArray< float > IntensitiesCache;
|
|
};
|
|
|
|
class COMPONENTVISUALIZERS_API FPointLightComponentVisualizer : public FComponentVisualizer
|
|
{
|
|
public:
|
|
//~ Begin FComponentVisualizer Interface
|
|
virtual void DrawVisualization(const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI) override;
|
|
//~ End FComponentVisualizer Interface
|
|
|
|
private:
|
|
FTextureLightProfileVisualizer LightProfileVisualizer;
|
|
};
|