diff --git a/engine/src/read.cpp b/engine/src/read.cpp index dfa74f3..8c987d1 100644 --- a/engine/src/read.cpp +++ b/engine/src/read.cpp @@ -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"); diff --git a/scenes/simple/race.xml b/scenes/simple/race.xml index ff5fdd4..a290bfd 100644 --- a/scenes/simple/race.xml +++ b/scenes/simple/race.xml @@ -22,8 +22,10 @@ - - + + + +