Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TwilightDyeShaderData.cs
Go to the documentation of this file.
4
6
8{
9 public TwilightDyeShaderData(Ref<Effect> shader, string passName)
10 : base(shader, passName)
11 {
12 }
13
14 public override void Apply(Entity entity, DrawData? drawData)
15 {
16 if (drawData.HasValue)
17 {
18 if (entity is Player { isDisplayDollOrInanimate: false, isHatRackDoll: false })
19 {
21 }
22 else if (entity is Projectile)
23 {
25 }
26 else
27 {
28 UseTargetPosition(drawData.Value.position);
29 }
30 }
31 base.Apply(entity, drawData);
32 }
33}
TwilightDyeShaderData(Ref< Effect > shader, string passName)
override void Apply(Entity entity, DrawData? drawData)
ArmorShaderData UseTargetPosition(Vector2 position)
static Vector2 screenPosition
Definition Main.cs:1715