mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 03:52:54 +08:00
Smooth triangles a bit (to avoid whole pixel jumps).
This commit is contained in:
parent
b334a310b0
commit
db8e44c715
@ -76,6 +76,7 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
RelativePositionAxes = Axes.Both,
|
RelativePositionAxes = Axes.Both,
|
||||||
Scale = new Vector2(scale),
|
Scale = new Vector2(scale),
|
||||||
|
EdgeSmoothness = new Vector2(1),
|
||||||
// Scaling height by 0.866 results in equiangular triangles (== 60° and equal side length)
|
// Scaling height by 0.866 results in equiangular triangles (== 60° and equal side length)
|
||||||
Colour = GetTriangleShade(),
|
Colour = GetTriangleShade(),
|
||||||
Size = new Vector2(size, 0.866f * size),
|
Size = new Vector2(size, 0.866f * size),
|
||||||
|
Loading…
Reference in New Issue
Block a user