builder_style.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include "builder_style.h"
  2. #include "builder_renderer.h"
  3. #include <QVector3D>
  4. namespace {
  5. constexpr QVector3D k_carthage_tunic{0.68F, 0.54F, 0.38F};
  6. constexpr QVector3D k_carthage_skin{0.08F, 0.07F, 0.065F};
  7. constexpr QVector3D k_carthage_leather{0.48F, 0.35F, 0.22F};
  8. constexpr QVector3D k_carthage_leather_dark{0.32F, 0.24F, 0.16F};
  9. constexpr QVector3D k_carthage_bronze{0.70F, 0.52F, 0.32F};
  10. constexpr QVector3D k_carthage_wood{0.45F, 0.35F, 0.22F};
  11. constexpr QVector3D k_carthage_apron{0.42F, 0.35F, 0.25F};
  12. } // namespace
  13. namespace Render::GL::Carthage {
  14. void register_carthage_builder_style() {
  15. BuilderStyleConfig style;
  16. style.cloth_color = k_carthage_tunic;
  17. style.skin_color = k_carthage_skin;
  18. style.leather_color = k_carthage_leather;
  19. style.leather_dark_color = k_carthage_leather_dark;
  20. style.metal_color = k_carthage_bronze;
  21. style.wood_color = k_carthage_wood;
  22. style.apron_color = k_carthage_apron;
  23. style.shader_id = "builder_carthage";
  24. style.show_helmet = false;
  25. style.show_armor = false;
  26. style.show_tool_belt = true;
  27. style.force_beard = true;
  28. register_builder_style("default", style);
  29. register_builder_style("carthage", style);
  30. }
  31. } // namespace Render::GL::Carthage