Skip to content
On this page

LineDashedMaterial

A material for drawing dashed line geometries.

Suitable for <Line />, <LineSegments /> or <LineLoop />.

Example

Props

Prop nameDescriptionTypeDefault
color Color of the material.union0xffffff
scale The scale of the dashed part of a line.number1
dashSize The size of the dash. This is both the gap with the stroke.number3
gapSize The size of the gap.number1
name Name of the materialstring""
opacity Float in the range of 0.0 - 1.0 indicating how transparent the material is.number1
transparentDefines whether this material is transparent.booleanfalse

Expose

three

You can access the managed THREE.LineDashedMaterial instance using the exposed three property.

Example code

template
<LineDashedMaterial ref="material" />
ts
const material = ref(null);

onMounted(() => {
  // Do something with the THREE.LineDashedMaterial instance
  const threeMaterial = material.value.three;
});

Released under the MIT License.