feat(title): paleta neon synthwave per element a l'escena de títol
This commit is contained in:
1 parent
880af293ef
commit
c61299f17f
5 files changed
+40
-10
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user