0
我要添加文本上的水平線,然後將其擠出:關於調用geo.addShape(VEC)發生three.js所:添加線多擠出文本
var geo = new THREE.TextGeometry("x", geometry_options);
var mat = new THREE.MeshBasicMaterial({color: 0, side:THREE.DoubleSide});
geo.computeBoundingBox();
var vec = new THREE.Shape();
vec.moveTo(geo.boundingBox.min.x, geo.boundingBox.max.y);
vec.lineTo(geo.boundingBox.max.x, geo.boundingBox.max.y);
geo.addShape(vec);
var mesh = new THREE.Mesh(geo, mat);
JavaScript錯誤。我想我有一些誤解。我對THREE.js還不是很熟悉。任何幫助或替代方式來實現這一點將不勝感激。
合併沒有工作,但我已經使用分組的想法並且工作正常。謝謝bjorke! – heaven