From df0f06adcddb9c40b7cfe736a1a106a874f3513e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 8 Mar 2010 23:21:31 -0500 Subject: Don't treat colors and vectors as different types. This allows things like 0.5*White, where White was #defined to be a color. POV-Ray's colors.inc almost parses now. --- tests/dimension/demo.sh | 14 +++++++------- tests/dimension/directives.sh | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'tests/dimension') diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh index 55274d0..f294a4f 100755 --- a/tests/dimension/demo.sh +++ b/tests/dimension/demo.sh @@ -31,10 +31,10 @@ demo_exp=$(echo -n \ (rotate (vector (integer 0) (integer 53) (integer 0) (integer 0) (integer 0)))) (background - (color (integer 0) (float 0.1) (float 0.2) (float 0.1) (integer 0))) + (vector (integer 0) (float 0.1) (float 0.2) (float 0.1) (integer 0))) (light_source (vector (integer -15) (integer 20) (integer 10) (integer 0) (integer 0)) - (color (integer 1) (integer 1) (integer 1) (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)) @@ -43,12 +43,12 @@ demo_exp=$(echo -n \ (integer 0) (integer 0))) (texture (pigment - (color (integer 0) (integer 0) (integer 1) - (float 0.25) (float 0.5))) + (vector (integer 0) (integer 0) (integer 1) + (float 0.25) (float 0.5))) (finish (reflection - (color (float 0.5) (float 0.5) (float 0.5) (float 0.5) (float 0.5)) - (color (float 0.5) (float 0.5) (float 0.5) (float 0.5) (float 0.5)) + (vector (float 0.5) (float 0.5) (float 0.5) (float 0.5) (float 0.5)) + (vector (float 0.5) (float 0.5) (float 0.5) (float 0.5) (float 0.5)) reflection-items))) (interior (ior (float 1.1))))) @@ -58,7 +58,7 @@ demo_exp=$(echo -n \ (object-modifiers (texture (pigment - (color (integer 0) (integer 1) (integer 0) (integer 0) (integer 0))) + (vector (integer 0) (integer 1) (integer 0) (integer 0) (integer 0))) (finish (phong (float 0.2)) (phong_size (float 40)))))))' \ diff --git a/tests/dimension/directives.sh b/tests/dimension/directives.sh index 5ecf574..74bde02 100755 --- a/tests/dimension/directives.sh +++ b/tests/dimension/directives.sh @@ -55,14 +55,14 @@ $(echo -n \ (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0)) (integer 1) (object-modifiers - (pigment (color (integer 1) (integer 1) (integer 1) - (integer 0) (integer 0))))) + (pigment (vector (integer 1) (integer 1) (integer 1) + (integer 0) (integer 0))))) (sphere (vector (integer 0) (integer 1) (integer 0) (integer 0) (integer 0)) (integer 1) (object-modifiers - (pigment (color (integer 1) (integer 1) (integer 1) - (integer 0) (integer 0))))))' \ + (pigment (vector (integer 1) (integer 1) (integer 1) + (integer 0) (integer 0))))))' \ | tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g')" if [ "$directives" != "$directives_exp" ]; then -- cgit v1.2.3