swordsman_style.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #include "swordsman_style.h"
  2. #include "swordsman_renderer.h"
  3. #include <QVector3D>
  4. namespace {
  5. constexpr QVector3D k_legionary_cloth{0.72F, 0.16F, 0.18F};
  6. constexpr QVector3D k_legionary_leather{0.34F, 0.21F, 0.11F};
  7. constexpr QVector3D k_legionary_leather_dark{0.24F, 0.14F, 0.08F};
  8. constexpr QVector3D k_legionary_metal{0.78F, 0.72F, 0.58F};
  9. constexpr QVector3D k_legionary_shield{0.75F, 0.18F, 0.12F};
  10. constexpr QVector3D k_legionary_trim{0.88F, 0.66F, 0.32F};
  11. } // namespace
  12. namespace Render::GL::Roman {
  13. void register_roman_swordsman_style() {
  14. KnightStyleConfig style;
  15. style.cloth_color = k_legionary_cloth;
  16. style.leather_color = k_legionary_leather;
  17. style.leather_dark_color = k_legionary_leather_dark;
  18. style.metal_color = k_legionary_metal;
  19. style.shield_color = k_legionary_shield;
  20. style.shield_trim_color = k_legionary_trim;
  21. style.shield_radius_scale = 0.95F;
  22. style.shield_aspect_ratio = 0.65F;
  23. style.has_scabbard = true;
  24. style.shield_cross_decal = false;
  25. style.shader_id = "swordsman_roman_republic";
  26. register_swordsman_style("roman_republic", style);
  27. }
  28. } // namespace Render::GL::Roman