CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
MaterialParameter.cpp
浏览该文件的文档.
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::rpc::MaterialParameter
MaterialParameter
Definition
MaterialParameter.h:17
carla::rpc::MaterialParameter::Tex_Ao_Roughness_Metallic_Emissive
@ Tex_Ao_Roughness_Metallic_Emissive
carla::rpc::MaterialParameter::Tex_Diffuse
@ Tex_Diffuse
carla::rpc::MaterialParameter::Tex_Normal
@ Tex_Normal
carla::rpc::MaterialParameter::Tex_Emissive
@ Tex_Emissive
carla::rpc::MaterialParameterToString
std::string MaterialParameterToString(MaterialParameter material_parameter)
Definition
MaterialParameter.cpp:12
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0