style(dvergar): back to the deepest depth that still shows, and smaller eyes

0.067 buried them, so the floor at the eye line is now measured too: the usable band runs from just under 0.105 to about 0.140, and 0.105 is the far end of what reads as inset.

Depth being spent, the remaining lever is size. What reads as protruding in profile is mostly the bloom halo rather than the ball, and both scale together - so EyeSize drops from 0.020 to 0.014, which pulls the halo in and leaves less cap standing out without moving the centre back onto the cheek.
This commit is contained in:
kanym 2026-08-05 21:31:09 +02:00
commit db482ede87

View file

@ -98,15 +98,18 @@ namespace RacesOfValheim
// These are pre-scale numbers: a Dvergar renders at 0.78, so 0.105 forward lands about
// 0.082m out from the bone at the base of the skull.
//
// EyeForward has less room than it looks. At 0.095 the eyes were placed correctly and
// vanished outright - the face surface was in front of them and the shader is
// depth-tested - while 0.140 had them standing off the skull in profile. The whole usable
// band is those four centimetres, and the eye is a two-centimetre ball, so most of it
// ends up buried by design and only the front cap shows.
// EyeForward has less room than it looks, and both ends of it are measured rather than
// guessed: 0.067 buries the eyes completely behind the face, 0.140 stands them off the
// skull in profile. 0.105 is the far end of what still reads as inset.
//
// Which means depth is spent. Anything that still looks too proud is the glow halo, not
// the geometry - the ball is smaller than the bloom around it - so EyeSize is the lever
// for that, and it shrinks the halo and the protruding cap together without moving the
// centre out of the socket.
public static readonly float EyeSeparation = 0.032f; // half the distance between them
public static readonly float EyeForward = 0.067f;
public static readonly float EyeForward = 0.105f;
public static readonly float EyeHeight = 0.200f;
public static readonly float EyeSize = 0.020f;
public static readonly float EyeSize = 0.014f;
// 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