CARLA
NormalsCamera.cpp
Go to the documentation of this file.
1 // Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #include "Carla.h"
9 
11 
13 
15 {
17 }
18 
19 ANormalsCamera::ANormalsCamera(const FObjectInitializer &ObjectInitializer)
20  : Super(ObjectInitializer)
21 {
22  Enable16BitFormat(false);
24  TEXT("Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
26  TEXT("Material'/Carla/PostProcessingMaterials/NormalsEffectMaterial.NormalsEffectMaterial'"));
27 }
28 
29 void ANormalsCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
30 {
31  TRACE_CPUPROFILER_EVENT_SCOPE(ANormalsCamera::PostPhysTick);
32  FPixelReader::SendPixelsInRenderThread<ANormalsCamera, FColor>(*this);
33 }
static FActorDefinition MakeNormalsCameraDefinition()
ANormalsCamera(const FObjectInitializer &ObjectInitializer)
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight...
A definition of a Carla Actor with all the variation and attributes.
static FActorDefinition GetSensorDefinition()
void Enable16BitFormat(bool Enable=false)