mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-21 11:57:44 +00:00
Fixup vertex normals
This commit is contained in:
parent
0b01715824
commit
93c6bf726a
2 changed files with 5 additions and 3 deletions
2
libxiv
2
libxiv
|
@ -1 +1 @@
|
|||
Subproject commit f8835854a3656f6212d647e7c7ce7c0c50c698b7
|
||||
Subproject commit f674fbe75bad269c6a00d9e4e5262df285b05152
|
|
@ -572,12 +572,14 @@ void Renderer::initPipeline() {
|
|||
normalAttribute.location = 1;
|
||||
normalAttribute.offset = offsetof(Vertex, normal);
|
||||
|
||||
std::array<VkVertexInputAttributeDescription, 2> attributes = {positionAttribute, normalAttribute};
|
||||
|
||||
VkPipelineVertexInputStateCreateInfo vertexInputState = {};
|
||||
vertexInputState.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
|
||||
vertexInputState.vertexBindingDescriptionCount = 1;
|
||||
vertexInputState.pVertexBindingDescriptions = &binding;
|
||||
vertexInputState.vertexAttributeDescriptionCount = 1;
|
||||
vertexInputState.pVertexAttributeDescriptions = &positionAttribute;
|
||||
vertexInputState.vertexAttributeDescriptionCount = attributes.size();
|
||||
vertexInputState.pVertexAttributeDescriptions = attributes.data();
|
||||
|
||||
VkPipelineInputAssemblyStateCreateInfo inputAssembly = {};
|
||||
inputAssembly.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
|
||||
|
|
Loading…
Add table
Reference in a new issue