CARLA
 
载入中...
搜索中...
未找到
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
9namespace carla {
10namespace rpc {
11
12std::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}
std::string MaterialParameterToString(MaterialParameter material_parameter)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133