camera.screentoviewportpoint 屏幕转视窗位置

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

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

camera.screentoviewportpoint 屏幕转视窗位置

functionscreentoviewportpoint(position:vector3

description描述

transforms position from screen space into viewport space.

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

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的位置是以世界单位衡量的到相机的距离。

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的位置是以世界单位衡量的到相机的距离。

相关阅读

文章点评
相关文章