|
![](/i/fill.gif) |
//What's wrong and why?
#include "colors.inc"
//camera { }
#declare TEST_SPHERE = 0;
#declare TEST_CYLINDER = 1;
//I expect to see only two black and two white square.
//But...
#switch( clock )
#case ( TEST_SPHERE )
sphere
#break
#case ( TEST_CYLINDER )
cone
#break
#end
{
#switch( clock )
#case ( TEST_SPHERE )
< 0, 0, 0 >, 1
#break
#case ( TEST_CYLINDER )
-x, 1, x, 1
#break
#end
pigment { checker color White color Black }
}
light_source { <-0.5 0.5, -0.5> color White }
//***************************
// dmi### [at] xoommail com
//http://members.xoom.com/dmilos/
//***************************
Post a reply to this message
|
![](/i/fill.gif) |