TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetColor()

virtual Color Terraria.Graphics.Shaders.HairShaderData.GetColor ( Player player,
Color lightColor )
inlinevirtual

Reimplemented in Terraria.GameContent.Dyes.LegacyHairShaderData.

Definition at line 87 of file HairShaderData.cs.

88 {
89 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
90 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
91 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
92 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
93 return new Color(((Color)(ref lightColor)).ToVector4() * ((Color)(ref player.hairColor)).ToVector4());
94 }

References Terraria.Player.hairColor.