VertexData

class VertexData(val position: Vector3, val normal: Vector3, val texCoord: Vector2, val color: ColorRGBa)(source)

A container class for vertex position, normal, texCoord and color.

Constructors

Link copied to clipboard
constructor(position: Vector3, normal: Vector3, texCoord: Vector2, color: ColorRGBa)

Properties

Link copied to clipboard
val color: ColorRGBa
Link copied to clipboard
val normal: Vector3
Link copied to clipboard
val position: Vector3
Link copied to clipboard
val texCoord: Vector2

Functions

Link copied to clipboard
fun transform(transform: Matrix44, normalTransform: Matrix44): TriangleMeshBuilder.VertexData

Return a new vertex with the position transformed with transform and the normal transformed with normalTransform. Used to translate, rotate or scale vertices.