ScreenToWorld and WorldToScreen Camera functionality (#6903)
Signed-off-by: Alex Peterson <26804013+AMZN-alexpete@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user