How can I make my text labels face the camera at all times? Perhaps using sprites?

后端 未结 1 1753
轻奢々
轻奢々 2021-01-03 03:55

I\'m looking at two examples, one is canvas interactive objects and the other is mouse tooltip. I tried combining the two to generate text labels on each individual cube and

相关标签:
1条回答
  • 2021-01-03 04:05

    Billboarding is easy. All you have to do, in your case, is add this inside your render loop:

    if ( currentLabel ) currentLabel.lookAt( camera.position );
    
    0 讨论(0)
提交回复
热议问题