TextGeometry 总是面对用户? [英] TextGeometry to always face user?

查看:25
本文介绍了TextGeometry 总是面对用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 THREE.TextGeometry 在我的场景中添加了一些文本,文本似乎卡在我放置它的任何 xy 平面上.有什么方法可以让它始终与用户可读的屏幕保持一致?

I've added some text to my scene with THREE.TextGeometry, and the text seems to be stuck in whichever xy plane I place it. Any way to have it adjust to always be in plane with the screen- readable for the user?

推荐答案

尝试

mesh.lookAt( camera.position );

然后网格的局部 z 轴应指向相机.

The local z-axis of the mesh should then point toward the camera.

这篇关于TextGeometry 总是面对用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆