mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Separate smoke rotation seed and index
This commit is contained in:
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user