From dae1f96852e53e3a402306d319a4977618c398b6 Mon Sep 17 00:00:00 2001 From: kanym Date: Wed, 5 Aug 2026 21:47:41 +0200 Subject: [PATCH] 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. --- JotunnModStub/Dvergar/DvergarConfig.cs | 11 ++++++++++- JotunnModStub/Dvergar/DvergarVisuals.cs | 8 ++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/JotunnModStub/Dvergar/DvergarConfig.cs b/JotunnModStub/Dvergar/DvergarConfig.cs index 995139c..aeca47d 100644 --- a/JotunnModStub/Dvergar/DvergarConfig.cs +++ b/JotunnModStub/Dvergar/DvergarConfig.cs @@ -116,11 +116,20 @@ namespace RacesOfValheim // halved for that reason - it does not only shrink the cap, it halves how violently the // cap answers to a millimetre of depth, which is the difference between tuning this and // fighting it. 15mm of radius clearing by 4mm gives about 20mm of eye. + // Depth is a fine adjustment at this radius, not a coarse one: 0.096 leaves the ball + // clearing the face by about 4mm and showing a 20mm eye, and 0.090 would bury it + // completely. 0.094 clears by 2mm and shows about 16mm. public static readonly float EyeSeparation = 0.032f; // half the distance between them - public static readonly float EyeForward = 0.096f; // centre ~75mm out + public static readonly float EyeForward = 0.094f; // centre ~73mm out public static readonly float EyeHeight = 0.200f; public static readonly float EyeSize = 0.038f; // ~30mm across, so a 15mm radius + // How hard the eyes burn. The colours the game gives a starred dverger are HDR - one star + // is (0, 4, 3.3) - and anything past 1 clips to white on the way to the bloom pass, which + // is why the centres read as white lamps rather than as teal. Scaling them down brings + // the colour back as much as it lowers the brightness. + public static readonly float EyeGlowStrength = 0.65f; + // Base glow, before any star. The tiers replace it with the emissive colours the game // itself gives a starred dverger - RGBA(0, 4, 3.3) at one star and RGBA(12, 0, 8.8) at // two, both far past 1, which is exactly what makes them bloom rather than just look diff --git a/JotunnModStub/Dvergar/DvergarVisuals.cs b/JotunnModStub/Dvergar/DvergarVisuals.cs index db165a4..8866589 100644 --- a/JotunnModStub/Dvergar/DvergarVisuals.cs +++ b/JotunnModStub/Dvergar/DvergarVisuals.cs @@ -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); } ///