👑
Impulse documentation
  • Getting started
  • Examples
    • Console
    • Window
  • enviornment
    • Globals
      • Lua globals
      • Impulse globals
    • Libraries
      • Win32
      • Direct X
      • Renderer
      • Input
      • Crypt
      • Memory
      • File system
      • Debug
  • Enumerations
    • Key codes
    • Cursor style
    • Primitive topology
  • Data types
    • Vector2
    • Vector3
    • Vertex
    • Color
    • Draw command
Powered by GitBook

Impulse links

  • GitHub
  • Project
  • Discord

© 2025 Impulse

On this page
  1. Data types

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.

PreviousVector3NextColor

Last updated 3 months ago