Terraria v1.4.4.9
Terraria 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 bool lighting = true;
21 Color result = _colorProcessor(player, player.hairColor, ref lighting);
22 if (lighting)
23 {
24 return new Color(result.ToVector4() * lightColor.ToVector4());
25 }
26 return result;
27 }

References Terraria.GameContent.Dyes.LegacyHairShaderData._colorProcessor, Terraria.Player.hairColor, and Microsoft.Xna.Framework.Color.ToVector4().