mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Use the actual scale of Flashlight for FlashlightSize
This commit is contained in:
parent
d1799d197d
commit
dfa5beea89
@ -5,6 +5,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.MatrixExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.OpenGL.Vertices;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
@ -79,7 +80,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
flashNode.Shader = shader;
|
||||
flashNode.ScreenSpaceDrawQuad = ScreenSpaceDrawQuad;
|
||||
flashNode.FlashlightPosition = Vector2Extensions.Transform(FlashlightPosition, DrawInfo.Matrix);
|
||||
flashNode.FlashlightSize = Vector2Extensions.Transform(FlashlightSize, DrawInfo.Matrix);
|
||||
flashNode.FlashlightSize = FlashlightSize * DrawInfo.Matrix.ExtractScale().Xy;
|
||||
flashNode.FlashlightDim = FlashlightDim;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user