From 7d6663eeb68bf9d0a3dff86128827c0c1d85df69 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 7 Apr 2010 01:17:28 -0400 Subject: Implement CSG in front-end. --- tests/dimension/demo.pov | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'tests/dimension/demo.pov') diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov index 3ecc36f..d14cebb 100644 --- a/tests/dimension/demo.pov +++ b/tests/dimension/demo.pov @@ -36,35 +36,37 @@ light_source { <-15, 20, 10>, color rgb <1, 1, 1> } -box { - <-1, -1, -1>, <1, 1, 1> +difference { + box { + <-1, -1, -1>, <1, 1, 1> - rotate 45*x + rotate 45*x - texture { - pigment { - color rgbft <0, 0, 1, 0.25, 0.5> + texture { + pigment { + color rgbft <0, 0, 1, 0.25, 0.5> + } + finish { + reflection { 0.5 } + } } - finish { - reflection { 0.5 } + + interior { + ior 1.1 } } - interior { - ior 1.1 - } -} + sphere { + <0, 0, 0>, 1.25 -sphere { - <0, 0, 0>, 1.25 - - texture { - pigment { - color rgb <0, 1, 0> - } - finish { - phong 0.2 - phong_size 40.0 + texture { + pigment { + color rgb <0, 1, 0> + } + finish { + phong 0.2 + phong_size 40.0 + } } } } -- cgit v1.2.3