Vulkan: Retarget Depth Range #114669

Merged
Jeroen Bakker merged 4 commits from Jeroen-Bakker/blender:vulkan/retarget-depth-range into main 2023-11-10 12:32:17 +01:00

4 Commits

Author SHA1 Message Date
Jeroen Bakker 72586e402e Merge branch 'main' into vulkan/retarget-depth-range 2023-11-09 17:12:04 +01:00
Jeroen Bakker dcc93545af Gramar in code comments 2023-11-09 14:48:19 +01:00
Jeroen Bakker db26aa4c46 Revert unneeded change 2023-11-09 14:45:25 +01:00
Jeroen Bakker cbd352064c Vulkan: Retarget Depth Range
OpenGL uses a depth range between -1 and 1, which is then normalized.
Metal & Vulkan uses a depth range between 0 and 1, which is already normalized.

The final plan would be to default to a depth range between 0 and 1, but
for now the depth ranges are retargetted so they won't be clipped away.

This solves the next issues for users:
- Navigate control will be rendered correctly
- Ortographic view clipping artifacts
2023-11-09 14:31:58 +01:00