35 auto result = msgs::Material::VERTEX;
38 result = msgs::Material::VERTEX;
40 else if (_str ==
"pixel")
42 result = msgs::Material::PIXEL;
44 else if (_str ==
"normal_map_object_space")
46 result = msgs::Material::NORMAL_MAP_OBJECT_SPACE;
48 else if (_str ==
"normal_map_tangent_space")
50 result = msgs::Material::NORMAL_MAP_TANGENT_SPACE;
54 std::cerr <<
"Unrecognized Material::ShaderType ["
56 <<
"], returning msgs::Material::VERTEX"