This article lies the initial groundwork required for establishing a ray pick routine, by providing algorithms and working code to convert a pixel coordinate into a ray in world space.
本文介绍建立光线拾取路径最初的基本工作,提供了将像素坐标转换到光线空间的算法和工作代码。
Note that because the origin of the world coordinate space is at the upper-left corner of the client area, the page coordinates are the same as the world coordinates.
请注意,由于全局座标空间的原点位于工作区的左上角,因此画面座标和全局座标是相同的。
Note that because the origin of the world coordinate space is at the upper-left corner of the client area, the page coordinates are the same as the world coordinates.
请注意,由于全局座标空间的原点位于工作区的左上角,因此画面座标和全局座标是相同的。
应用推荐