diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-25 14:09:06 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-25 14:09:06 -0500 |
commit | 32f46ae1ccdb01533ea61265e4c977b9307c710d (patch) | |
tree | 79e0137ea2a30fa65f9fc2b0a8c441094ec22050 /tests/dimension | |
parent | aa6106d8f1d60077aea53f216d9098a686e170f1 (diff) | |
download | dimension-32f46ae1ccdb01533ea61265e4c977b9307c710d.tar.xz |
Support solid-color pigments.
Diffstat (limited to 'tests/dimension')
-rw-r--r-- | tests/dimension/demo.pov | 6 | ||||
-rwxr-xr-x | tests/dimension/demo.sh | 19 |
2 files changed, 22 insertions, 3 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov index 453ebfc..5aa044e 100644 --- a/tests/dimension/demo.pov +++ b/tests/dimension/demo.pov @@ -22,8 +22,14 @@ box { <-1, -1, -1>, <1, 1, 1> rotate <45, 0, 0> + pigment { + color rgbft <0, 0, 1, 0.25, 0.25> + } } sphere { <0, 0, 0>, 1.25 + pigment { + color rgb <0, 1, 0> + } } diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh index 0e0303a..ae65a9d 100755 --- a/tests/dimension/demo.sh +++ b/tests/dimension/demo.sh @@ -25,9 +25,16 @@ demo_exp="$(echo -n \ < - (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") > + } } sphere { < (integer "0") , (integer "0") , (integer "0") > , (float "1.25") + pigment { + color rgb < (integer "0") , (integer "1") , (integer "0") > + } })' \ | tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g') $(echo -n \ @@ -35,12 +42,18 @@ $(echo -n \ (vector (integer -1) (integer -1) (integer -1) (integer 0) (integer 0)) (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0)) (object-modifiers - (rotate (vector (integer 45) (integer 0) (integer 0) (integer 0) - (integer 0))))) + (rotate (vector (integer 45) (integer 0) (integer 0) + (integer 0) (integer 0))) + (texture + (pigment (vector (integer 0) (integer 0) (integer 1) + (float 0.25) (float 0.25)))))) (sphere (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0)) (float 1.25) - object-modifiers))' \ + (object-modifiers + (texture + (pigment (vector (integer 0) (integer 1) (integer 0) + (integer 0) (integer 0)))))))' \ | tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')" if [ "$demo" != "$demo_exp" ]; then |