summaryrefslogtreecommitdiffstats
path: root/tests/dimension/demo.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-11-25 20:10:13 -0500
committerTavian Barnes <tavianator@gmail.com>2009-11-25 20:10:13 -0500
commit48ded3e40b77d2c072429854e2ebf81744c3e552 (patch)
treeff693e40dd3185c9e89ca07bef468e9b2a294d0e /tests/dimension/demo.sh
parentcc79ac6130baca3179de24004420ce1d0199a140 (diff)
downloaddimension-48ded3e40b77d2c072429854e2ebf81744c3e552.tar.xz
Implement point lights.
Diffstat (limited to 'tests/dimension/demo.sh')
-rwxr-xr-xtests/dimension/demo.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index ae65a9d..fbd6fc3 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -21,24 +21,31 @@
demo=$(${top_builddir}/dimension/dimension --tokenize --parse ${srcdir}/demo.pov)
demo_exp="$(echo -n \
-'(box {
+'(light_source {
+ < - (integer "15") , (integer "20") , (integer "10") > ,
+ rgb < (integer "1") , (integer "1") , (integer "1") >
+ }
+ box {
< - (integer "1") , - (integer "1") , - (integer "1") > ,
< (integer "1") , (integer "1") , (integer "1") >
rotate < (integer "45") , (integer "0") , (integer "0") >
pigment {
- color rgbft < (integer "0") , (integer "0") , (integer "1") ,
- (float "0.25") , (float "0.25") >
+ rgbft < (integer "0") , (integer "0") , (integer "1") ,
+ (float "0.25") , (float "0.25") >
}
}
sphere {
< (integer "0") , (integer "0") , (integer "0") > , (float "1.25")
pigment {
- color rgb < (integer "0") , (integer "1") , (integer "0") >
+ rgb < (integer "0") , (integer "1") , (integer "0") >
}
})' \
| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')
$(echo -n \
-'((box
+'((light_source
+ (vector (integer -15) (integer 20) (integer 10) (integer 0) (integer 0))
+ (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0)))
+ (box
(vector (integer -1) (integer -1) (integer -1) (integer 0) (integer 0))
(vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0))
(object-modifiers