mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 11:42:55 +08:00
Separate smoke rotation seed and index
This commit is contained in:
parent
029f896db8
commit
46bcabea6c
@ -234,7 +234,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
if (points.Count == 0)
|
if (points.Count == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
rotationIndex = rotationSeed;
|
rotationIndex = 0;
|
||||||
|
|
||||||
quadBatch ??= renderer.CreateQuadBatch<TexturedVertex2D>(max_point_count / 10, 10);
|
quadBatch ??= renderer.CreateQuadBatch<TexturedVertex2D>(max_point_count / 10, 10);
|
||||||
texture ??= renderer.WhitePixel;
|
texture ??= renderer.WhitePixel;
|
||||||
@ -314,11 +314,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
return new Vector2(MathF.Sin(angle), -MathF.Cos(angle));
|
return new Vector2(MathF.Sin(angle), -MathF.Cos(angle));
|
||||||
}
|
}
|
||||||
|
|
||||||
private float nextRotation()
|
private float nextRotation() => max_rotation * (StatelessRNG.NextSingle(rotationSeed, rotationIndex++) * 2 - 1);
|
||||||
{
|
|
||||||
rotationIndex++;
|
|
||||||
return max_rotation * (StatelessRNG.NextSingle(rotationIndex) * 2 - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void drawPointQuad(SmokePoint point, RectangleF textureRect)
|
private void drawPointQuad(SmokePoint point, RectangleF textureRect)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user