CARLA
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 }
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
std::string MaterialParameterToString(MaterialParameter material_parameter)