Skip to content

Commit

Permalink
add pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJPinto committed May 28, 2024
1 parent db9b4a3 commit 1832bf0
Show file tree
Hide file tree
Showing 7 changed files with 135,900 additions and 22 deletions.
9 changes: 7 additions & 2 deletions engine/src/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ Model readOBJfile(const char* filepath) {
nx = normals[normal_index].x;
ny = normals[normal_index].y;
nz = normals[normal_index].z;
tx = textures[texture_index].x;
ty = textures[texture_index].y;
if(texture_index == -1) {
tx = 0;
ty = 0;
} else {
tx = textures[texture_index].x;
ty = textures[texture_index].y;
}

if (texture_index == -1) {
printf("Texture index is -1\n");
Expand Down
Loading

0 comments on commit 1832bf0

Please sign in to comment.