CARLA
LibCarla
source
carla
rpc
MaterialParameter.cpp
Go to the documentation of this file.
1
// Copyright (c) 2021 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 "
MaterialParameter.h
"
8
9
namespace
carla
{
10
namespace
rpc {
11
12
std::string
MaterialParameterToString
(
MaterialParameter
material_parameter)
13
{
14
switch
(material_parameter)
15
{
16
case
MaterialParameter::Tex_Normal
:
return
"Normal"
;
17
case
MaterialParameter::Tex_Ao_Roughness_Metallic_Emissive
:
return
"AO / Roughness / Metallic / Emissive"
;
18
case
MaterialParameter::Tex_Diffuse
:
return
"Diffuse"
;
19
case
MaterialParameter::Tex_Emissive
:
return
"Emissive"
;
20
default
:
return
"Invalid"
;
21
}
22
}
23
24
}
25
}
MaterialParameter.h
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
carla::rpc::MaterialParameter
MaterialParameter
Definition:
MaterialParameter.h:16
carla::rpc::MaterialParameter::Tex_Emissive
carla::rpc::MaterialParameter::Tex_Diffuse
carla::rpc::MaterialParameter::Tex_Ao_Roughness_Metallic_Emissive
carla::rpc::MaterialParameter::Tex_Normal
carla::rpc::MaterialParameterToString
std::string MaterialParameterToString(MaterialParameter material_parameter)
Definition:
MaterialParameter.cpp:12
Generated by
1.8.13