You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira none #rb stu.mckenna #ROBOMERGE-AUTHOR: michael.galetzka #ROBOMERGE-SOURCE: CL 18259968 in //UE5/Release-5.0/... via CL 18260002 #ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469) [CL 18260207 by michael galetzka in ue5-release-engine-test branch]
21 lines
629 B
Plaintext
21 lines
629 B
Plaintext
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
// when using a template ush file, we need the _{ParameterName} appendix on global functions and parameters, because the template can be included multiple times for different data interfaces in a system.
|
|
float4 MousePosition_{ParameterName};
|
|
|
|
void GetMousePosition_{ParameterName}(in bool In_Normalized, out float Out_PosX, out float Out_PosY)
|
|
{
|
|
float4 DIPosition = MousePosition_{ParameterName};
|
|
if (In_Normalized)
|
|
{
|
|
Out_PosX = DIPosition.x / DIPosition.z;
|
|
Out_PosY = DIPosition.y / DIPosition.w;
|
|
}
|
|
else
|
|
{
|
|
Out_PosX = DIPosition.x;
|
|
Out_PosY = DIPosition.y;
|
|
}
|
|
}
|