Vertex

data class Vertex(val x: Float, val y: Float, val z: Float, val tx: Float, val ty: Float, val tx2: Float, val ty2: Float, val nx: Float, val ny: Float, val nz: Float, val tax: Float, val tay: Float, val taz: Float, val taw: Float, val color: Color)

Represents a mesh vertex.

Constructors

Link copied to clipboard
constructor(x: Float, y: Float, z: Float, tx: Float, ty: Float, tx2: Float, ty2: Float, nx: Float, ny: Float, nz: Float, tax: Float, tay: Float, taz: Float, taw: Float, color: Color)

Properties

Link copied to clipboard

The color of the vertex.

Link copied to clipboard
val nx: Float

The X coordinate of the vertex normal.

Link copied to clipboard
val ny: Float

The Y coordinate of the vertex normal.

Link copied to clipboard
val nz: Float

The Z coordinate of the vertex normal.

Link copied to clipboard
val taw: Float

The W coordinate of the vertex's tangent.

Link copied to clipboard
val tax: Float

The X coordinate of the vertex's tangent.

Link copied to clipboard
val tay: Float

The Y coordinate of the vertex's tangent.

Link copied to clipboard
val taz: Float

The Z coordinate of the vertex's tangent.

Link copied to clipboard
val tx: Float

The X coordinate of the vertex's texture position.

Link copied to clipboard
val tx2: Float

The X coordinate of the vertex's second texture position.

Link copied to clipboard
val ty: Float

The Y Coordinate of the vertex's texture position.

Link copied to clipboard
val ty2: Float

The Y coordinate of the vertex's second texture position.

Link copied to clipboard
val x: Float

The X coordinate of the vertex.

Link copied to clipboard
val y: Float

The Y coordinate of the vertex.

Link copied to clipboard
val z: Float

The Z coordinate of the vertex.