spearman_style.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #include "spearman_style.h"
  2. #include "spearman_renderer.h"
  3. #include <QVector3D>
  4. namespace {
  5. constexpr QVector3D k_carthage_cloth{0.12F, 0.36F, 0.52F};
  6. constexpr QVector3D k_carthage_leather{0.36F, 0.24F, 0.12F};
  7. constexpr QVector3D k_carthage_leather_dark{0.22F, 0.16F, 0.10F};
  8. constexpr QVector3D k_carthage_metal{0.75F, 0.66F, 0.42F};
  9. constexpr QVector3D k_carthage_spear_shaft{0.38F, 0.28F, 0.18F};
  10. constexpr QVector3D k_carthage_spearhead{0.90F, 0.88F, 0.70F};
  11. } // namespace
  12. namespace Render::GL::Carthage {
  13. void register_carthage_spearman_style() {
  14. SpearmanStyleConfig style;
  15. style.cloth_color = k_carthage_cloth;
  16. style.leather_color = k_carthage_leather;
  17. style.leather_dark_color = k_carthage_leather_dark;
  18. style.metal_color = k_carthage_metal;
  19. style.spear_shaft_color = k_carthage_spear_shaft;
  20. style.spearhead_color = k_carthage_spearhead;
  21. style.spear_length_scale = 1.08F;
  22. style.shader_id = "spearman_carthage";
  23. style.armor_id = "armor_light_carthage";
  24. style.force_beard = true;
  25. register_spearman_style("carthage", style);
  26. }
  27. } // namespace Render::GL::Carthage