group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PlayerColors.hpp
Go to the documentation of this file.
1
11
12#pragma once
13
14#include <array>
15#include <glm/vec3.hpp>
16
18{
19
21inline constexpr bool k_enabled = true;
22
24inline constexpr float k_blendFactor = 0.6f;
25
30inline constexpr std::array<glm::vec3, 10> k_palette = {{
31 {0.95f, 0.20f, 0.20f}, // 0 red
32 {0.95f, 0.55f, 0.10f}, // 1 orange
33 {0.95f, 0.90f, 0.20f}, // 2 yellow
34 {0.30f, 0.85f, 0.25f}, // 3 green
35 {0.20f, 0.85f, 0.85f}, // 4 cyan
36 {0.25f, 0.45f, 0.95f}, // 5 blue
37 {0.65f, 0.30f, 0.95f}, // 6 purple
38 {0.95f, 0.30f, 0.85f}, // 7 magenta
39 {0.95f, 0.55f, 0.75f}, // 8 pink
40 {0.55f, 0.95f, 0.55f}, // 9 mint
41}};
42
43inline constexpr int k_paletteSize = static_cast<int>(k_palette.size());
44
45} // namespace player_colors
Definition PlayerColors.hpp:18
constexpr int k_paletteSize
Definition PlayerColors.hpp:43
constexpr float k_blendFactor
Mix factor in the shader: 0 = original albedo, 1 = flat tint color.
Definition PlayerColors.hpp:24
constexpr std::array< glm::vec3, 10 > k_palette
Curated palette of visually distinct hues.
Definition PlayerColors.hpp:30
constexpr bool k_enabled
Master toggle. Flip to false to disable per-player tinting entirely.
Definition PlayerColors.hpp:21