archer_style.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #include "archer_style.h"
  2. #include "archer_renderer.h"
  3. #include <QVector3D>
  4. namespace {
  5. constexpr QVector3D k_roman_cloth{0.72F, 0.16F, 0.18F};
  6. constexpr QVector3D k_roman_leather{0.34F, 0.21F, 0.11F};
  7. constexpr QVector3D k_roman_leather_dark{0.24F, 0.14F, 0.08F};
  8. constexpr QVector3D k_roman_metal{0.78F, 0.72F, 0.58F};
  9. constexpr QVector3D k_roman_wood{0.46F, 0.32F, 0.18F};
  10. constexpr QVector3D k_roman_cape{0.70F, 0.15F, 0.18F};
  11. constexpr QVector3D k_roman_fletch{0.93F, 0.83F, 0.33F};
  12. constexpr QVector3D k_roman_string{0.28F, 0.28F, 0.32F};
  13. } // namespace
  14. namespace Render::GL::Roman {
  15. void register_roman_archer_style() {
  16. ArcherStyleConfig style;
  17. style.cloth_color = k_roman_cloth;
  18. style.leather_color = k_roman_leather;
  19. style.leather_dark_color = k_roman_leather_dark;
  20. style.metal_color = k_roman_metal;
  21. style.wood_color = k_roman_wood;
  22. style.cape_color = k_roman_cape;
  23. style.fletching_color = k_roman_fletch;
  24. style.bow_string_color = k_roman_string;
  25. style.show_helmet = true;
  26. style.shader_id = "archer_roman_republic";
  27. register_archer_style("roman_republic", style);
  28. }
  29. } // namespace Render::GL::Roman