Doc > Expressions > point

Doc > Expressions > point

Returns the value of a vertex attribute

Description

It takes 3 arguments.

point(<input_index_or_node_path>, <attrib_name>, <point_index>)

  • <input_index_or_node_path> is a number or a string
  • <attrib_name> is a string, the name of the attribute
  • <point_index> index of the point to fetch

Usage

  • point(0, 'position', 0) - returns the position of the first point of the first input, as a THREE.Vector3