CARLA
 
载入中...
搜索中...
未找到
NormalsCamera.cpp
浏览该文件的文档.
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
18
19ANormalsCamera::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
29void 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 GetSensorDefinition()
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
ANormalsCamera(const FObjectInitializer &ObjectInitializer)
void Enable16BitFormat(bool Enable=false)
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight.
static FActorDefinition MakeNormalsCameraDefinition()
A definition of a Carla Actor with all the variation and attributes.