1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 12:37:45 +00:00

Oops, bone weights are 4 components and not 3

This commit is contained in:
Joshua Goins 2023-07-06 17:35:42 -04:00
parent b216a670b2
commit 673a80e781

View file

@ -703,21 +703,20 @@ void Renderer::initPipeline() {
VkVertexInputAttributeDescription positionAttribute = {};
positionAttribute.format = VK_FORMAT_R32G32B32_SFLOAT;
positionAttribute.format = VK_FORMAT_R32G32B32_SFLOAT;
positionAttribute.offset = offsetof(Vertex, position);
VkVertexInputAttributeDescription normalAttribute = {};
normalAttribute.format = VK_FORMAT_R32G32B32_SFLOAT;
normalAttribute.location = 1;
normalAttribute.offset = offsetof(Vertex, normal);
VkVertexInputAttributeDescription uvAttribute = {};
uvAttribute.format = VK_FORMAT_R32G32_SFLOAT;
uvAttribute.location = 2;
uvAttribute.offset = offsetof(Vertex, uv);
VkVertexInputAttributeDescription normalAttribute = {};
normalAttribute.format = VK_FORMAT_R32G32B32_SFLOAT;
normalAttribute.location = 1;
normalAttribute.offset = offsetof(Vertex, normal);
VkVertexInputAttributeDescription boneWeightAttribute = {};
boneWeightAttribute.format = VK_FORMAT_R32G32B32_SFLOAT;
boneWeightAttribute.format = VK_FORMAT_R32G32B32A32_SFLOAT;
boneWeightAttribute.location = 3;
boneWeightAttribute.offset = offsetof(Vertex, bone_weight);