![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
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. | |
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.