group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
player_colors Namespace Reference

Variables

constexpr bool k_enabled = true
 Master toggle. Flip to false to disable per-player tinting entirely.
constexpr float k_blendFactor = 0.6f
 Mix factor in the shader: 0 = original albedo, 1 = flat tint color.
constexpr std::array< glm::vec3, 10 > k_palette
 Curated palette of visually distinct hues.
constexpr int k_paletteSize = static_cast<int>(k_palette.size())

Variable Documentation

◆ k_blendFactor

float player_colors::k_blendFactor = 0.6f
inlineconstexpr

Mix factor in the shader: 0 = original albedo, 1 = flat tint color.

◆ k_enabled

bool player_colors::k_enabled = true
inlineconstexpr

Master toggle. Flip to false to disable per-player tinting entirely.

◆ k_palette

std::array<glm::vec3, 10> player_colors::k_palette
inlineconstexpr
Initial value:
= {{
{0.95f, 0.20f, 0.20f},
{0.95f, 0.55f, 0.10f},
{0.95f, 0.90f, 0.20f},
{0.30f, 0.85f, 0.25f},
{0.20f, 0.85f, 0.85f},
{0.25f, 0.45f, 0.95f},
{0.65f, 0.30f, 0.95f},
{0.95f, 0.30f, 0.85f},
{0.95f, 0.55f, 0.75f},
{0.55f, 0.95f, 0.55f},
}}

Curated palette of visually distinct hues.

Sized larger than typical match cap so reservation rarely wraps. Picked for separation in a busy scene under HDR + tonemap; saturated, mid-bright.

◆ k_paletteSize

int player_colors::k_paletteSize = static_cast<int>(k_palette.size())
inlineconstexpr