feat(title): paleta neon synthwave per element a l'escena de títol

This commit is contained in:
JailDesigner committed 2026-05-22 13:04:11 +02:00
1 parent 880af293ef
commit c61299f17f
5 files changed
+40 -10

No files matched your search

+7 -2
View File
@@ -5,6 +5,7 @@
#include <algorithm>
#include <cmath>
#include <cstddef>
#include "core/defaults.hpp"
#include "core/graphics/shape_loader.hpp"
@@ -150,7 +151,8 @@ namespace Title {
if (camera_ == nullptr || renderer_ == nullptr) {
return;
}
for (const auto& ship : ships_) {
for (std::size_t i = 0; i < ships_.size(); ++i) {
const auto& ship = ships_[i];
if (!ship.visible) {
continue;
}
@@ -160,7 +162,10 @@ namespace Title {
.rotation_euler = Vec3{.x = EULER.x, .y = EULER.y, .z = 0.0F},
.scale = ship.current_scale,
};
Graphics::drawWireframe(renderer_, *camera_, ship.mesh, TRANSFORM, 1.0F);
const SDL_Color SHIP_COLOR = (i == 0)
? Defaults::Title::Colors::SHIP_P1
: Defaults::Title::Colors::SHIP_P2;
Graphics::drawWireframe(renderer_, *camera_, ship.mesh, TRANSFORM, 1.0F, SHIP_COLOR);
}
}