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:
parent
b216a670b2
commit
673a80e781
1 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue