Points constructor
Points(
- BufferGeometry geometry,
- Material? material
geometry
— (optional) an instance of
BufferGeometry. Default is a new BufferGeometry.
Material material
— (optional) a Material. Default is a new
PointsMaterial.
Implementation
Points(BufferGeometry geometry, Material? material) {
type = 'Points';
this.geometry = geometry;
this.material = material;
updateMorphTargets();
}