Skip to content

Instantly share code, notes, and snippets.

View Elysia-simp's full-sized avatar
🗿
I may be slow to respond.

Chips Elysia-simp

🗿
I may be slow to respond.
View GitHub Profile
@Elysia-simp
Elysia-simp / SkinColors.txt
Last active October 26, 2025 02:47
UGC Genshin skin colors
//these might be linear colors
//Morning Frost (1)
_SkinTintColor 0.90466, 0.87962, 0.83077
_SkinTintSecondColor 0.75294, 0.18447, 0.13843
_SkinTintColorOutlineLerp 0.717
_FirstShadowMultColor 0.89627, 0.64448, 0.5972
_CoolShadowMultColor 0.80695, 0.57758, 0.53948
//Moon Shadow (2)
_SkinTintColor 1.00, 0.90466, 0.9131
@Elysia-simp
Elysia-simp / FaceShadowGenshin.hlsl
Last active September 13, 2025 01:42
Face map code from Genshin Impact
float3 face_uv = 0;
float lx = dot(-light_d, mul(float3(1,0,0), (float3x3)head_bone)); // do not invert light_dir in other software that isn't MMD
float lz = dot(-light_d, mul(float3(0,0,-1), (float3x3)head_bone));
float minAbs = min(abs(lz), abs(lx));
float maxAbs = max(abs(lz), abs(lx));
float invMax = 1.0 / maxAbs;
float ratio = minAbs * invMax;
float ratio2 = ratio * ratio;