【文件属性】:
文件名称:three-fatline:宽度可变的ThreeJS Line对象
文件大小:44KB
文件格式:ZIP
更新时间:2021-05-13 16:56:58
JavaScript
三脂肪
的模块化版本。
参见()
用法示例:
import { Line2, LineGeometry, LineMaterial } from 'three-fatline';
const geometry = new LineGeometry();
geometry.setPositions([-160, 200, 0, 0, -200, 0, 160, 200, 0]); // [ x1, y1, z1, x2, y2, z2, ... ] format
const material = new LineMaterial({
color: 'red',
linewidth: 10, // px
resolution: new THREE.Vector2(640, 480) // resolution of the viewport
// dashed, das