aboutsummaryrefslogtreecommitdiff
path: root/examples/square.obj
diff options
context:
space:
mode:
Diffstat (limited to 'examples/square.obj')
-rw-r--r--examples/square.obj9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/square.obj b/examples/square.obj
new file mode 100644
index 0000000..d44fd6d
--- /dev/null
+++ b/examples/square.obj
@@ -0,0 +1,9 @@
+# This example shows a square that measures two units on each side and
+# faces in the positive direction (toward the camera). Note that the
+# ordering of the vertices is counterclockwise. This ordering
+# determines that the square is facing forward.
+v 0.000000 2.000000 0.000000
+v 0.000000 0.000000 0.000000
+v 2.000000 0.000000 0.000000
+v 2.000000 2.000000 0.000000
+f 1 2 3 4