Skip to content

Commit

Permalink
Revert uv flip on rectangles
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Mar 28, 2019
1 parent baf522d commit 4352926
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions geometry-shapes.lisp
Expand Up @@ -25,12 +25,12 @@
u (- h) b 0)))
(incf l x) (incf r x) (incf u y) (incf b y)
(with-vertex-filling ((or mesh (make-instance 'vertex-mesh :vertex-type 'textured-vertex)) :pack pack)
(vertex :position (vec r u z) :uv (vec 1.0 1.0))
(vertex :position (vec r b z) :uv (vec 1.0 0.0))
(vertex :position (vec l b z) :uv (vec 0.0 0.0))
(vertex :position (vec l b z) :uv (vec 0.0 0.0))
(vertex :position (vec l u z) :uv (vec 0.0 1.0))
(vertex :position (vec r u z) :uv (vec 1.0 1.0)))))
(vertex :position (vec r u z) :uv (vec 1.0 0.0))
(vertex :position (vec r b z) :uv (vec 1.0 1.0))
(vertex :position (vec l b z) :uv (vec 0.0 1.0))
(vertex :position (vec l b z) :uv (vec 0.0 1.0))
(vertex :position (vec l u z) :uv (vec 0.0 0.0))
(vertex :position (vec r u z) :uv (vec 1.0 0.0)))))

(defun make-cube (size &key mesh pack (x 0) (y 0) (z 0))
(destructuring-bind (w d h) (enlist size size size)
Expand Down

0 comments on commit 4352926

Please sign in to comment.