【发布时间】:2018-05-22 16:46:46
【问题描述】:
我已使用https://threejs.org/docs/#api/geometries/TextGeometry 中的代码将文本添加到我的场景中
我不知道如何更改挤出深度,这比我想要的要“厚”得多。这是我正在使用的确切代码:
var loader = new THREE.FontLoader();
loader.load( 'fonts/font.json', function ( font ) {
var textGeometry = new THREE.TextGeometry( 'WELCOME', {
font: font,
size: 4,
height: 8,
amount: 8,//attempt to change the depth but doesn't work
} );
是否可以更改文本几何图形的拉伸量?
【问题讨论】:
-
documentation 说:height — 浮动。挤出文本的厚度。默认为 50。
标签: three.js