Skip to content
On this page

LineBasicMaterial

A material for drawing line geometries.

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

Example

Code

Note: The following code is updated according to the properties set above.

Props

Prop nameDescriptionTypeDefault
color Color of the material.union0xffffff
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.LineBasicMaterial instance using the exposed three property.

Example code

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

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

Released under the MIT License.