Skip to content

RGB & RGBA

RGB and RGBA structs. These are basic wrappers for glm::vec3 (rgb) and glm::vec4 (rgba) to handle colors. They keep compatibility with vectors but appear as color pickers in the Editor for easier editing. The meshComponent for example uses rgba for its color field.

Example

vex::rgba color = glm::vec4(1.f)