Smooth triangles a bit (to avoid whole pixel jumps).

This commit is contained in:
Dean Herbert 2017-02-07 11:15:37 +09:00
parent b334a310b0
commit db8e44c715
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -76,6 +76,7 @@ namespace osu.Game.Graphics.Backgrounds
Origin = Anchor.TopCentre,
RelativePositionAxes = Axes.Both,
Scale = new Vector2(scale),
EdgeSmoothness = new Vector2(1),
// Scaling height by 0.866 results in equiangular triangles (== 60° and equal side length)
Colour = GetTriangleShade(),
Size = new Vector2(size, 0.866f * size),