Unity中的空间变换
[Homogeneous Coordinates, Clip Space, and NDC | WebGPU | Carmen’s Graphics Blog](https://carmencincotti.com/2022-05-02/homogeneous-coordinates-clip-space-ndc/) |
Fragment Shader中的SV_POSITION包含的信息如下:
- XY:screen space position
- Z : raw depth / converted clip-space depth / depth buffer’s value
- W : view space depth
本文由作者按照 CC BY 4.0 进行授权