style(dvergar): sink the eyes slightly and take the glare off them

EyeForward 0.096 to 0.094, which sounds like nothing and is not: at this radius the ball clears the face by 4mm and shows a 20mm eye, and 2mm of clearance shows about 16mm. 0.090 would bury it outright, so depth is a fine adjustment here rather than a coarse one.

Glow scaled to 0.65 as well. The colours are the game's own HDR values - one star is (0, 4, 3.3) - and everything past 1 clips to white before the bloom pass, which is why the centres read as white lamps instead of teal ones. Dimming them brings the colour back as much as it lowers the brightness.
This commit is contained in:
kanym 2026-08-05 21:47:41 +02:00
commit dae1f96852
2 changed files with 16 additions and 3 deletions

View file

@ -213,9 +213,13 @@ namespace RacesOfValheim
private static Color GetEyeColor(Player player)
{
LevelEffects.LevelSetup setup = GetStarSetup(GetStarTier(GetProgressionState(player)));
if (setup != null && setup.m_setEmissiveColor) return setup.m_emissiveColor;
Color glow = setup != null && setup.m_setEmissiveColor
? setup.m_emissiveColor
: DvergarConfig.BaseEyeColor;
return DvergarConfig.BaseEyeColor;
// Dimmed on the way out. Alpha is left alone - it is not part of the brightness.
float strength = DvergarConfig.EyeGlowStrength;
return new Color(glow.r * strength, glow.g * strength, glow.b * strength, glow.a);
}
/// <summary>