ScreenToWorld and WorldToScreen Camera functionality (#6903)

Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
This commit is contained in:
Alex Peterson
2022-01-14 16:43:01 -08:00
committed by GitHub
parent 5885270640
commit b87e6896e6
9 changed files with 389 additions and 2 deletions
@@ -245,7 +245,7 @@ namespace AZ
AZ_Assert(false, "DebugCamera does not support orthographic projection");
}
void CameraComponent::MakeActiveView()
void CameraComponent::MakeActiveView()
{
// do nothing
}
@@ -255,6 +255,30 @@ namespace AZ
return false;
}
AZ::Vector3 CameraComponent::ScreenToWorld([[maybe_unused]] const AZ::Vector2& screenPosition, [[maybe_unused]] float depth)
{
// not implemented
return AZ::Vector3::CreateZero();
}
AZ::Vector3 CameraComponent::ScreenNdcToWorld([[maybe_unused]] const AZ::Vector2& screenPosition, [[maybe_unused]] float depth)
{
// not implemented
return AZ::Vector3::CreateZero();
}
AZ::Vector2 CameraComponent::WorldToScreen([[maybe_unused]] const AZ::Vector3& worldPosition)
{
// not implemented
return AZ::Vector2::CreateZero();
}
AZ::Vector2 CameraComponent::WorldToScreenNdc([[maybe_unused]] const AZ::Vector3& worldPosition)
{
// not implemented
return AZ::Vector2::CreateZero();
}
void CameraComponent::OnViewportResized(uint32_t width, uint32_t height)
{
AZ_UNUSED(width);