Vulkan 坐标系

不同图形API的NDC

DirectX / Metal

Left-handed

Y-down

X-right

Z-inward

Depth [-1, 1]

Origin at top left

OpenGL

Right-handed Y-up

X-right

Z-inward

Depth [-1, 1]

Origin at bottom left

Vulkan

Right-handed Y-down X-right Z-inward Depth [0, 1]

References

  1. https://www.saschawillems.de/blog/2019/03/29/flipping-the-vulkan-viewport/
  2. https://matthewwellings.com/blog/the-new-vulkan-coordinate-system/