Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a0e9c63

Browse files
committed
Merge branch 'master' of github.com:Overv/VulkanTutorial
2 parents 96bfc61 + 09bfc66 commit a0e9c63

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

08_Loading_models.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ vertex.texCoord = {
207207
attrib.texcoords[2 * index.texcoord_index + 0],
208208
attrib.texcoords[2 * index.texcoord_index + 1]
209209
};
210+
211+
vertex.color = {1.0f, 1.0f, 1.0f};
210212
```
211213
212214
Unfortunately the `attrib.vertices` array is an array of `float` values instead

code/model_loading.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,8 @@ class HelloTriangleApplication {
10021002
1.0f - attrib.texcoords[2 * index.texcoord_index + 1]
10031003
};
10041004

1005+
vertex.color = {1.0f, 1.0f, 1.0f};
1006+
10051007
if (uniqueVertices.count(vertex) == 0) {
10061008
uniqueVertices[vertex] = vertices.size();
10071009
vertices.push_back(vertex);

0 commit comments

Comments
 (0)