diff options
-rw-r--r-- | tests/dimension/demo.pov | 12 | ||||
-rwxr-xr-x | tests/dimension/demo.sh | 14 | ||||
-rw-r--r-- | tests/libdimension/tests.c | 8 |
3 files changed, 17 insertions, 17 deletions
diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov index d517621..1419e35 100644 --- a/tests/dimension/demo.pov +++ b/tests/dimension/demo.pov @@ -43,12 +43,16 @@ box { texture { pigment { - color rgbft <0, 0, 1, 0.25, 0.25> + color rgbft <0, 0, 1, 0.25, 0.5> } finish { - reflection { 1.0 } + reflection { 0.5 } } } + + interior { + ior 1.1 + } } sphere { @@ -63,8 +67,4 @@ sphere { phong_size 40.0 } } - - interior { - ior 1.3 - } } diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh index 3411ef2..55274d0 100755 --- a/tests/dimension/demo.sh +++ b/tests/dimension/demo.sh @@ -44,12 +44,14 @@ demo_exp=$(echo -n \ (texture (pigment (color (integer 0) (integer 0) (integer 1) - (float 0.25) (float 0.25))) + (float 0.25) (float 0.5))) (finish (reflection - (color (float 1) (float 1) (float 1) (float 1) (float 1)) - (color (float 1) (float 1) (float 1) (float 1) (float 1)) - reflection-items))))) + (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)) + reflection-items))) + (interior + (ior (float 1.1))))) (sphere (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0)) (float 1.25) @@ -59,9 +61,7 @@ demo_exp=$(echo -n \ (color (integer 0) (integer 1) (integer 0) (integer 0) (integer 0))) (finish (phong (float 0.2)) - (phong_size (float 40)))) - (interior - (ior (float 1.3))))))' \ + (phong_size (float 40)))))))' \ | tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g') if [ "$demo" != "$demo_exp" ]; then diff --git a/tests/libdimension/tests.c b/tests/libdimension/tests.c index d8d1dd9..d5aeb69 100644 --- a/tests/libdimension/tests.c +++ b/tests/libdimension/tests.c @@ -117,15 +117,15 @@ dmnsn_new_default_scene() dmnsn_color cube_color = dmnsn_magenta; cube_color.filter = 0.25; - cube_color.trans = 0.25; + cube_color.trans = 0.5; cube->texture->pigment = dmnsn_new_solid_pigment(cube_color); if (!cube->texture->pigment) { dmnsn_delete_scene(scene); return NULL; } - cube->texture->finish = dmnsn_new_reflective_finish(dmnsn_white, dmnsn_white, - 1.0); + dmnsn_color reflect = dmnsn_color_mul(0.5, dmnsn_white); + cube->texture->finish = dmnsn_new_reflective_finish(reflect, reflect, 1.0); if (!cube->texture->finish) { dmnsn_delete_scene(scene); return NULL; @@ -136,7 +136,7 @@ dmnsn_new_default_scene() dmnsn_delete_scene(scene); return NULL; } - cube->interior->ior = 1.3; + cube->interior->ior = 1.1; cube->trans = dmnsn_rotation_matrix(dmnsn_new_vector(0.75, 0.0, 0.0)); |