Polygon

constructor(positions: List<Vector3> = emptyList(), textureCoords: List<Vector2> = emptyList(), colors: List<ColorRGBa> = emptyList(), normals: List<Vector3> = emptyList(), tangents: List<Vector3> = emptyList(), bitangents: List<Vector3> = emptyList())(source)

Creates a Polygon with specified attributes.

Parameters

positions

The list of 3D positions of the polygon vertices.

textureCoords

The list of 2D texture coordinates for the polygon vertices.

colors

The list of color values for the polygon vertices.

normals

The list of normal vectors for the polygon vertices.

tangents

The list of tangent vectors for the polygon vertices.

bitangents

The list of bitangent vectors for the polygon vertices.