找回密碼
 注冊帳號

掃一掃,訪問微社區

camera.screentoviewportpoint 屏幕轉視窗位置

2015-1-4 07:27| 發布者: 楊炎| 查看: 2564| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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的位置是以世界單位衡量的到相機的距離。

相關閱讀

文章點評
相關文章
女校游泳队彩金