archer_style.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include "archer_style.h"
  2. #include "archer_renderer.h"
  3. #include <QVector3D>
  4. #include <string>
  5. #include <string_view>
  6. namespace {
  7. constexpr QVector3D k_carthage_cloth{0.12F, 0.36F, 0.52F};
  8. constexpr QVector3D k_carthage_leather{0.36F, 0.24F, 0.12F};
  9. constexpr QVector3D k_carthage_leather_dark{0.22F, 0.16F, 0.10F};
  10. constexpr QVector3D k_carthage_metal{0.75F, 0.66F, 0.42F};
  11. constexpr QVector3D k_carthage_wood{0.38F, 0.28F, 0.18F};
  12. constexpr QVector3D k_carthage_fletch{0.90F, 0.82F, 0.28F};
  13. constexpr QVector3D k_carthage_string{0.32F, 0.30F, 0.26F};
  14. constexpr QVector3D k_carthage_cape{0.14F, 0.38F, 0.54F};
  15. } // namespace
  16. namespace Render::GL::Carthage {
  17. void register_carthage_archer_style() {
  18. ArcherStyleConfig style;
  19. style.cloth_color = k_carthage_cloth;
  20. style.leather_color = k_carthage_leather;
  21. style.leather_dark_color = k_carthage_leather_dark;
  22. style.metal_color = k_carthage_metal;
  23. style.wood_color = k_carthage_wood;
  24. style.fletching_color = k_carthage_fletch;
  25. style.bow_string_color = k_carthage_string;
  26. style.cape_color = k_carthage_cape;
  27. style.show_helmet = true;
  28. style.show_armor = true;
  29. style.show_shoulder_decor = false;
  30. style.show_cape = true;
  31. style.force_beard = true;
  32. style.attachment_profile.clear();
  33. style.shader_id = "archer_carthage";
  34. style.armor_id = "armor_light_carthage";
  35. register_archer_style("carthage", style);
  36. }
  37. } // namespace Render::GL::Carthage