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); } ///