GwieF.com : project.GrieF.com : Example Input File
logo

Example Input File


/*	Demo rayTrace file
 *	This is a comment
 *	
 */


shape boxa (box){      //this is also a comment
translate(-0.5,0,0);
rotateX(320);
rotatez(30);
color(1,0,0);
}

shape spherea (sphere){
translate(-2,0,0);
color(0,1,0);
}

shape conea (cone){
translate(0.9,0,0);
rotateX(195);
color(1,1,0);
}

shape cyla (cylinder){
translate(2,0,0);
rotateX(20);
color(0,0,1);
}

light lighta {
position(3,-30,-4);
color(1,1,1);
intensity(20);
}

CSGnode nodea (boxa, ADD, spherea);
CSGnode nodeb (cyla, ADD, conea);
CSGnode nodec (nodea, ADD, nodeb);

CSGstart nodec;