camera.viewporttoscreenpoint 视窗转屏幕位置

2015-1-4 08:27| 发布者: 杨炎| 查看: 2104| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: camera.viewporttoscreenpoint 视窗转屏幕位置functionviewporttoscreenpoint(position:vector3description描述transforms position from viewport space into screen space.从视口空间到屏幕空间的变换位置。viewpo ...

camera.viewporttoscreenpoint 视窗转屏幕位置

functionviewporttoscreenpoint(position:vector3

description描述

transforms position from viewport space into screen space.

从视口空间到屏幕空间的变换位置。

viewport space is normalized and relative to the camera. the bottom-left of the camera is (0,0); the top-right is (1,1). the z position is in world units from the camera.

视口空间是规范化的并相对于相机。相机的左下为(0,0),右上是(1,1),z的位置是以世界单位衡量的到相机的距离。

screenspace is defined in pixels. the bottom-left of the screen is (0,0); the right-top is (pixelwidth,pixelheight). the z position is in world units from the camera.

屏幕空间以像素定义。屏幕的左下为(0,0);右上是(pixelwidth,pixelheight),z的位置是以世界单位衡量的到相机的距离。

相关阅读

文章点评
相关文章