From b437554ae933f99a59054e6589177ca8380a3a97 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 26 Nov 2009 17:21:37 -0500 Subject: Add cameras to grammar. --- tests/dimension/demo.pov | 8 ++++++++ tests/dimension/demo.sh | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'tests') 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)) -- cgit v1.2.3