summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-26 17:21:37 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-26 18:58:42 -0500
commitb437554ae933f99a59054e6589177ca8380a3a97 (patch)
treebbf5708813e3892b23dad4886c0f6228ab5c3e58 /tests/dimension
parentc0a0ee5ae71b97b1400efddb4c374e1d13701fa3 (diff)
downloaddimension-b437554ae933f99a59054e6589177ca8380a3a97.tar.xz
Add cameras to grammar.
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/demo.pov8
-rwxr-xr-xtests/dimension/demo.sh11
2 files changed, 18 insertions, 1 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov
index c6f99fb..67113cf 100644
--- a/tests/dimension/demo.pov
+++ b/tests/dimension/demo.pov
@@ -19,6 +19,14 @@
// Render demo scene
+camera {
+ perspective
+ location <0, 0, -4>
+ right <768/480, 0, 0>
+ rotate <0, 53, 0>
+ look_at <0, 0, 0>
+}
+
background {
color rgbf <0, 0, 0.1, 0.1>
}
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index 0d8da5a..31bb3ce 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -21,7 +21,16 @@
demo=$(${top_builddir}/dimension/dimension --parse ${srcdir}/demo.pov)
demo_exp=$(echo -n \
-'((background
+'((camera
+ perspective
+ (location (vector (integer 0) (integer 0) (integer -4)
+ (integer 0) (integer 0)))
+ (right (vector (float 1.6) (integer 0) (integer 0) (integer 0) (integer 0)))
+ (rotate (vector (integer 0) (integer 53) (integer 0)
+ (integer 0) (integer 0)))
+ (look_at (vector (integer 0) (integer 0) (integer 0)
+ (integer 0) (integer 0))))
+ (background
(vector (integer 0) (integer 0) (float 0.1) (float 0.1) (integer 0)))
(light_source
(vector (integer -15) (integer 20) (integer 10) (integer 0) (integer 0))