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

◆ GetColor()

override Color Terraria.GameContent.Dyes.LegacyHairShaderData.GetColor ( Player player,
Color lightColor )
inlinevirtual

Reimplemented from Terraria.Graphics.Shaders.HairShaderData.

Definition at line 18 of file LegacyHairShaderData.cs.

19 {
20 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
21 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
22 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
23 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
24 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
25 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
26 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
27 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
28 bool lighting = true;
29 Color result = _colorProcessor(player, player.hairColor, ref lighting);
30 if (lighting)
31 {
32 return new Color(((Color)(ref result)).ToVector4() * ((Color)(ref lightColor)).ToVector4());
33 }
34 return result;
35 }

References Terraria.GameContent.Dyes.LegacyHairShaderData._colorProcessor, and Terraria.Player.hairColor.