summaryrefslogtreecommitdiff
path: root/src/Graphics/WaveFront/Parse/OBJ.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-06-11 02:21:46 -0400
committerJoe Crayne <joe@jerkface.net>2019-06-11 02:21:46 -0400
commitd866df206e703854cfa95e6aabe3ed5ed3bfbcaa (patch)
tree3beb584ce3a21c8df2bb11e6780c8867a1960b82 /src/Graphics/WaveFront/Parse/OBJ.hs
parent254c7813344075b6a2c915d9724a5e7a18091b87 (diff)
Fixed Sundqvist v and vt parsing.
Diffstat (limited to 'src/Graphics/WaveFront/Parse/OBJ.hs')
-rw-r--r--src/Graphics/WaveFront/Parse/OBJ.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Graphics/WaveFront/Parse/OBJ.hs b/src/Graphics/WaveFront/Parse/OBJ.hs
index 37aa5a0..69cce47 100644
--- a/src/Graphics/WaveFront/Parse/OBJ.hs
+++ b/src/Graphics/WaveFront/Parse/OBJ.hs
@@ -139,12 +139,12 @@ normal = OBJNormal <$> point3D
139 139
140-- | Two coordinates, separated by whitespace 140-- | Two coordinates, separated by whitespace
141texcoord :: (Fractional f) => Atto.Parser (OBJToken f Text i m) 141texcoord :: (Fractional f) => Atto.Parser (OBJToken f Text i m)
142texcoord = OBJTexCoord <$> point2D 142texcoord = OBJTexCoord <$> pointTo3 1 0.0
143 143
144 144
145-- | Three coordinates, separated by whitespace 145-- | Three coordinates, separated by whitespace
146vertex :: (Fractional f) => Atto.Parser (OBJToken f s i m) 146vertex :: (Fractional f) => Atto.Parser (OBJToken f s i m)
147vertex = OBJVertex <$> point3D 147vertex = OBJVertex <$> pointTo4 3 1.0
148 148
149 149
150-- | Object names, separated by whitespace 150-- | Object names, separated by whitespace
@@ -170,4 +170,4 @@ lib = LibMTL <$> (space *> name)
170 170
171-- | An MTL material name 171-- | An MTL material name
172use :: Atto.Parser (OBJToken f Text i m) 172use :: Atto.Parser (OBJToken f Text i m)
173use = UseMTL <$> (space *> name) \ No newline at end of file 173use = UseMTL <$> (space *> name)