Fix projectile shadow alpha calculation.
This commit is contained in:
committed by
abcdefg30
parent
1813edc74b
commit
c096934db8
@@ -185,7 +185,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
remainingBounces = info.BounceCount;
|
||||
|
||||
shadowColor = new float3(info.ShadowColor.R, info.ShadowColor.G, info.ShadowColor.B) / 255f;
|
||||
shadowAlpha = info.ShadowColor.A;
|
||||
shadowAlpha = info.ShadowColor.A / 255f;
|
||||
}
|
||||
|
||||
WAngle GetEffectiveFacing()
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
}
|
||||
|
||||
shadowColor = new float3(info.ShadowColor.R, info.ShadowColor.G, info.ShadowColor.B) / 255f;
|
||||
shadowAlpha = info.ShadowColor.A;
|
||||
shadowAlpha = info.ShadowColor.A / 255f;
|
||||
}
|
||||
|
||||
public void Tick(World world)
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
trailPalette += args.SourceActor.Owner.InternalName;
|
||||
|
||||
shadowColor = new float3(info.ShadowColor.R, info.ShadowColor.G, info.ShadowColor.B) / 255f;
|
||||
shadowAlpha = info.ShadowColor.A;
|
||||
shadowAlpha = info.ShadowColor.A / 255f;
|
||||
}
|
||||
|
||||
static int LoopRadius(int speed, int rot)
|
||||
|
||||
Reference in New Issue
Block a user