CARLA
Loading...
Searching...
No Matches
ShaderBasedSensor_WideAngleLens.h
Go to the documentation of this file.
1// Copyright (c) 2026 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#pragma once
8
10
11#include "ShaderBasedSensor_WideAngleLens.generated.h"
12
13UCLASS(Abstract)
16{
17 GENERATED_BODY()
18
19public:
20
21 AShaderBasedSensor_WideAngleLens(const FObjectInitializer& ObjectInitializer);
22
23 void Set(const FActorDescription& ActorDescription) override;
24
25 UFUNCTION(BlueprintCallable)
26 bool AddPostProcessingMaterial(const FString& Path);
27
28 /// Add a post-processing shader.
29 UFUNCTION(BlueprintCallable)
30 void AddShader(const FSensorShader& Shader)
31 {
32 Shaders.Add(Shader);
33 }
34
35 void SetFloatShaderParameter(uint8_t ShaderIndex, const FName& ParameterName, float Value);
36
37protected:
38
39 void SetUpSceneCaptureComponents(TArrayView<USceneCaptureComponent2D_CARLA*> SceneCaptures) override;
40
41private:
42
43 UPROPERTY()
44 TArray<TObjectPtr<UMaterial>> MaterialsFound;
45
46 UPROPERTY()
47 TArray<FSensorShader> Shaders;
48
49 UPROPERTY()
50 TArray<FShaderFloatParameterValue> FloatShaderParams;
51};
A description of a Carla Actor with all its variation.
A shader in AShaderBasedSensor.
A shader parameter value to change when the material instance is available.