Vertex

Constructor

vertex.new(x: number, y: number, z: number, rhw: number, u: number, v: number, color: color) -> vertex
Properties
Description

x

Defines the horizontal position of a point in 3D space, determining left or right movement.

y

Defines the vertical position of a point in 3D space, determining up or down movement..

z

Defines depth in 3D space, determining forward or backward movement.

rhw

Represents the reciprocal of the homogeneous W component, used for depth correction and perspective transformation.

u

Defines the horizontal texture coordinate, mapping the texture’s position across the surface.

v

Defines the vertical texture coordinate, mapping the texture’s position along the surface.

color

Defines the vertex's color, often used for shading and lighting effects.

Last updated