#include <mesh.hpp>
- Warning
- Adding tangent here increases GPUTriangle from 160 to 208 bytes. This will increase VRAM usage by ~30%.
- Todo
- Might as well use the pre-calculated size to warn if the GPU can't handle it.
◆ _pad0
◆ _pad1
◆ _pad2 [1/2]
◆ _pad2 [2/2]
| glm::vec2 GPUVertex::_pad2 |
◆ normal [1/2]
◆ normal [2/2]
| glm::vec3 GPUVertex::normal |
◆ position [1/2]
◆ position [2/2]
| glm::vec3 GPUVertex::position |
◆ tangent [1/2]
◆ tangent [2/2]
| glm::vec4 GPUVertex::tangent |
Stored vertex tangents, xyz = tangent direction, w = handedness sign for bitangent (= cross(normal, tan.xyz) * tan.w) Needed to shade correctly across mirrored UV islands
◆ texcoord [1/2]
◆ texcoord [2/2]
| glm::vec2 GPUVertex::texcoord |
The documentation for this struct was generated from the following files: