summaryrefslogtreecommitdiff
path: root/src/Graphics/WaveFront/Parse/OBJ.hs
diff options
context:
space:
mode:
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)