LineBasicMaterial 基础线条材质

—> Material

当你的 Object 不再是网格 Mesh, 而是线条时, 它的材质就要选择线条材质.

function LineBasicMaterial( parameters ) { } var geometry = new THREE.BoxGeometry(4, 4, 4), edgesGeometry = new THREE.EdgesGeometry(geometry, 1), linesMaterial = new THREE.LineBasicMaterial({color: 0xffffff}), edges = new THREE.LineSegments(edgesGeometry, linesMaterial); scene.add(edges);

Attributes

type : String

Default value : 'LineBasicMaterial'
Description : 类型

color : Color

Default value : 0xffffff
Description : 材质的颜色.

linewidth : Float

Default value : 1
Description : 线宽.

linecap : String

Default value : 'round'
Description : 线的端点样式.

linejoin : String

Default value : 'round'
Description : 线的连接点样式.

lights : Boolean

Default value : false
Description : 是否接受光照.