Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gramosomi committed May 26, 2024
1 parent b345a6e commit bc9e88e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engine/src/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ Model readOBJfile(const char* filepath) {
nx = normals[normal_index].x;
ny = normals[normal_index].y;
nz = normals[normal_index].z;
tx = 0;
ty = 1;
tx = textures[texture_index].x;
ty = textures[texture_index].y;

if (texture_index == -1) {
printf("Texture index is -1\n");
Expand Down
6 changes: 4 additions & 2 deletions scenes/simple/race.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
<translate x="0" y="2" z="0" />
</transform>
<models>
<model file="models/simple/ferrari.obj" /> <!-- generator patch teapot.patch 10 bezier_10.3d -->
</models>
<model file="models/simple/ferrari.obj" > <!-- generator cone 1 2 4 3 cone_1_2_4_3.3d -->
<texture file = "textures/ferrari.png" />
</model>
</models>

</group>
<group>
Expand Down

0 comments on commit bc9e88e

Please sign in to comment.