vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Vertex Struct Reference

One vertex: position, normal, texture coordinates and tangent frame. More...

#include <mesh_asset.h>

Public Attributes

glm::vec3 position
 Model-space position.
glm::vec3 normal
 Surface normal, model space.
glm::vec2 uv
 Texture coordinates.
glm::vec4 tangent
 Along +U; w is the handedness, +1 or -1.

Detailed Description

One vertex: position, normal, texture coordinates and tangent frame.

The tangent runs the way U grows and cross(normal, tangent) * w the way V grows.


The documentation for this struct was generated from the following file: