three.js - what are 2D screen coordinates of point behind camera

后端 未结 0 1092
暗喜
暗喜 2021-01-14 15:35

I\'m using following code to get 2D coordinates on 3D point "p" on screen:

var v = p.clone().project(camera);
var percX = (v.x + 1) / 2;
var percY =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题