summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Data/Obj3D/GL.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Data/Obj3D/GL.hs b/src/Data/Obj3D/GL.hs
index 1cfa5c6..30169b4 100644
--- a/src/Data/Obj3D/GL.hs
+++ b/src/Data/Obj3D/GL.hs
@@ -66,10 +66,10 @@ getIndex v = do
return i
makeVertexData :: ObjModel -> FaceVertex -> Interleaved
-makeVertexData model (v, t, n) = Interleaved ts tt nx ny nz vx vy vz
+makeVertexData model (v, t, n) = Interleaved tu (-tv) nx ny nz vx vy vz
where
(vx, vy, vz) = genericIndex (objVertices model) v
- (ts, tt) = if isJust t then genericIndex (objTexCoords model) $ fromJust t else (0, 0)
+ (tu, tv) = if isJust t then genericIndex (objTexCoords model) $ fromJust t else (0, 0)
(nx, ny, nz) = if isJust n then genericIndex (objNormals model) $ fromJust n else (0, 0, 0)