7#include "Materials/Material.h"
12 PrimaryActorTick.bCanEverTick =
false;
31 Super::Init(parameters, SimulateSensor);
39 Super::EndPlay(EndPlayReason);
57 if (SceneCaptureComponent)
65 FString Path =
"/Game/Agrarsense/Materials/PostProcessingMaterials/DepthEffectMaterialGrayscale.DepthEffectMaterialGrayscale";
82 FString Path =
"/Game/Agrarsense/Materials/PostProcessingMaterials/DepthEffectMaterial.DepthEffectMaterial";
83 DepthEffectMaterial = Cast<UMaterial>(StaticLoadObject(UMaterial::StaticClass(),
nullptr, *Path));
void AddPostProcessingMaterial(const FString &Path, float Weight=1.0f)
void ChangeCameraParameters(FCameraBaseParameters newParameters)
void RemovePostProcessingMaterial(UMaterial *Material)
void SetShadowRendering(bool RenderShadows)
USceneCaptureComponent2D * GetCaptureComponent2D() const
void DepthInit(FDepthCameraParameters Parameters, bool SimulateSensor=true)
void ChangeDepthCameraParameters(FDepthCameraParameters Parameters)
TWeakObjectPtr< UMaterial > DepthEffectMaterialGrayscale
void SetupDepthMaterial(const bool UseGrayscale)
ADepthCamera(const FObjectInitializer &ObjectInitializer)
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override
TWeakObjectPtr< UMaterial > DepthEffectMaterial
FDepthCameraParameters DepthCameraParameters
void Init(FCameraBaseParameters parameters, bool SimulateSensor=true) override
FCameraBaseParameters CameraParameters