Capítulo 63 de 859
A material for rendering line primitives.
Materials define the appearance of renderable 3D objects.
const material = new THREE.LineDashedMaterial( {
color: 0xffffff,
scale: 1,
dashSize: 3,
gapSize: 1,
} );
Constructor
| Signature |
|---|
new LineDashedMaterial( parameters : Object ) |
Properties
| Property | Description |
|---|---|
.dashSize : number | The size of the dash. This is both the gap with the stroke. |
.gapSize : number | The size of the gap. |
.isLineDashedMaterial : boolean (readonly) | This flag can be used for type testing. |
.scale : number | The scale of the dashed part of a line. |