mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
commit
e5331ea1d2
1 changed files with 3 additions and 2 deletions
|
|
@ -354,9 +354,10 @@ namespace Dalamud.Game.Internal.Gui {
|
|||
|
||||
viewProjectionMatrix.Invert();
|
||||
|
||||
var localScreenPos = new Vector2(screenPos.X - windowPos.X, screenPos.Y - windowPos.Y);
|
||||
var screenPos3D = new Vector3 {
|
||||
X = screenPos.X / width * 2.0f - 1.0f,
|
||||
Y = -(screenPos.Y / height * 2.0f - 1.0f),
|
||||
X = localScreenPos.X / width * 2.0f - 1.0f,
|
||||
Y = -(localScreenPos.Y / height * 2.0f - 1.0f),
|
||||
Z = 0
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue