11#include <util/ue-header-guard-begin.h>
13#include <util/ue-header-guard-end.h>
17 constexpr bool bEnableModifyingPostProcessEffects =
true;
20 bEnableModifyingPostProcessEffects);
24 : Super(ObjectInitializer)
27 TEXT(
"Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
45 Super::EndPlay(EndPlayReason);
51 Super::PostPhysTick(World, TickType, DeltaSeconds);
58 TArrayView<const FColor> Pixels,
59 FIntPoint Size) ->
bool
66#ifdef CARLA_HAS_GBUFFER_API
67void ASceneCaptureCamera::SendGBufferTextures(FGBufferRequest& GBuffer)
69 SendGBufferTexturesInternal(*
this, GBuffer);
static FActorDefinition GetSensorDefinition()
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
virtual void OnLastClientDisconnected() override
void BeginPlay() override
void EndPlay(const EEndPlayReason::Type EndPlayReason) override
virtual void OnFirstClientConnected() override
ASceneCaptureCamera(const FObjectInitializer &ObjectInitializer)
static void SendDataToClient(SensorType &&Sensor, TArrayView< ElementType > SensorData, const FSensorCaptureContext &CaptureContext)
static FSensorCaptureContext MakeCaptureContext(const ASensor &Sensor)
Call on the game thread right after CaptureScene().
bool AreClientsListening()
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight.
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
bool ReadSensorImageDataAsyncFColor(AShaderBasedSensor &Sensor, ReadImageDataAsyncCallbackFColor &&Callback)
A definition of a Carla Actor with all the variation and attributes.