This commit is contained in:
ColdVolcano
2017-06-18 23:52:42 -05:00
parent 84aa17dea3
commit 77ca48c1bd

View File

@ -162,9 +162,11 @@ namespace osu.Game.Screens.Menu
if (AudioData != null)
{
for (int i = 0; i < bars_per_visualizer * visualizers; i++)
for (int j = 0; j < visualizers; j++)
{
float rotation = MathHelper.DegreesToRadians(i / (float)bars_per_visualizer * 360 + (i / bars_per_visualizer) * (360 / visualizers));
for (int i = 0; i < bars_per_visualizer; i++)
{
float rotation = MathHelper.DegreesToRadians(i / (float)bars_per_visualizer * 360 + j * 360 / visualizers);
float rotationCos = (float)Math.Cos(rotation);
float rotationSin = (float)Math.Sin(rotation);
//taking the cos and sin to the 0..1 range
@ -192,6 +194,7 @@ namespace osu.Game.Screens.Menu
Vector2.Divide(inflation, barSize.Yx));
}
}
}
Shader.Unbind();
}
}