当前位置:网站首页>Coordinate transformation of graphic technology

Coordinate transformation of graphic technology

2022-06-24 08:04:00 Kenight_

The conversion process


Coordinate clipping is performed before perspective division , In clipping coordinates x, y, z Will work with w To test , stay [-w, w] The vertices outside the are clipped off

This w From where :w By PROJECTION Matrix Homogeneous coordinates added after transformation , Its value is equal to that in camera coordinates -z  value ( The camera coordinates use the right-hand coordinate system ), And its scope must be [near, far] Between , Otherwise it will be cut off

Then perspective division and viewport transformation will be performed by GPU Automatic execution , And then it came in fragment shader

 

Coordinate data during conversion


 

原网站

版权声明
本文为[Kenight_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240219094384.html