spearman_style.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #include "spearman_style.h"
  2. #include "spearman_renderer.h"
  3. #include <QVector3D>
  4. namespace {
  5. constexpr QVector3D k_legionary_spear_shaft{0.46F, 0.28F, 0.14F};
  6. constexpr QVector3D k_legionary_spearhead{0.80F, 0.74F, 0.58F};
  7. constexpr QVector3D k_legionary_cloth{0.72F, 0.16F, 0.18F};
  8. constexpr QVector3D k_legionary_leather{0.34F, 0.21F, 0.11F};
  9. constexpr QVector3D k_legionary_leather_dark{0.24F, 0.14F, 0.08F};
  10. constexpr QVector3D k_legionary_metal{0.78F, 0.72F, 0.58F};
  11. } // namespace
  12. namespace Render::GL::Roman {
  13. void register_roman_spearman_style() {
  14. SpearmanStyleConfig 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.spear_shaft_color = k_legionary_spear_shaft;
  20. style.spearhead_color = k_legionary_spearhead;
  21. style.spear_length_scale = 1.05F;
  22. style.shader_id = "spearman_roman_republic";
  23. register_spearman_style("roman_republic", style);
  24. }
  25. } // namespace Render::GL::Roman