add-dvergar-color-and-skeleton-menu #14

Merged
kanym merged 30 commits from add-dvergar-color-and-skeleton-menu into main 2026-08-05 22:08:39 +02:00
Showing only changes of commit 38ba444f64 - Show all commits

style(dvergar): make the eyes bigger and round again

0.014 was 11mm across on a Dvergar, which buried enough of the sphere that the visible cap read as a flat decal rather than an eye. Up to 0.026, past the 0.020 it started at, so more of the ball stands clear of the skull and gets its roundness back.
kanym 2026-08-05 21:35:58 +02:00

View file

@ -102,14 +102,15 @@ namespace RacesOfValheim
// 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.
// Which means depth is spent, and size is the other lever - but it cuts both ways. Taking
// it down to 0.014 did pull the glow into the socket and cost the eye its volume with it:
// at 11mm across, most of the ball is behind the face and the visible cap is flat enough
// to read as a decal rather than an eye. Bigger leaves more sphere standing out of the
// skull, which is what gives it roundness.
public static readonly float EyeSeparation = 0.032f; // half the distance between them
public static readonly float EyeForward = 0.105f;
public static readonly float EyeHeight = 0.200f;
public static readonly float EyeSize = 0.014f;
public static readonly float EyeSize = 0.026f;
// 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