How do I make a TextGeometry multiline? How do I put it inside a square so it wraps like html text does inside a div?

前端 未结 4 1470
情书的邮戳
情书的邮戳 2021-01-11 23:13

I\'m making some 3D text using WebGL, three.js, and THREE.TextGeometry. It\'s working fine so far. I\'m able to create a single line o

4条回答
  •  臣服心动
    2021-01-11 23:46

    The API for three.js is pretty low-level. I do not believe this is possible in general. One way you can work around this is to produce multiple TextGeometry instances, one per line, and manually position them at different y coordinates.

提交回复
热议问题