Skip to content
On this page

PointsMaterial

A material for drawing <Points />.

Example

Props

Prop nameDescriptionTypeDefault
color Color of the material.union0xffffff
sizeAttenuationSpecify whether points' size is attenuated by the camera depth.
(Perspective camera only)
booleantrue
name Name of the materialstring""
size Defines the size of the points in pixels.number1
opacity Float in the range of 0.0 - 1.0 indicating how transparent the material is.number1
transparent Defines whether this material is transparent.booleanfalse

Expose

three

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

Example code

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

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

Released under the MIT License.