#include "colors.inc" #include "woods.inc" #include "stones.inc" #include "metals.inc" #include "golds.inc" #include "glass.inc" //Place the camera camera { sky <0,0,1> //Don't change this direction <-1,0,0> //Don't change this location <10,5,5> //Change this if you want to move the camera to a different point look_at <0,0,0> //Change this if you want to aim the camera at a different point right <-4/3,0,0> //Don't change this angle 20 } //Place a light light_source { <10,-10,9> //Change this if you want to put the light at a different point color White*3 } //Set a background color background { color White*2 } //Create a "floor" plane { <0,0,-1>,0 texture { T_Stone2 } } //Define the coordinates of the five vertices #declare p1 = <1,1,0>; #declare p2 = <1,-1,0>; #declare p3 = <-1,-1,0>; #declare p4 = <-1,1,0>; #declare p5 = <0,0,1>; //Define the polygons for each of the five sides. //Notice that the last point must be a repetition of the first. //The first number indicates how many points will be listed. #declare f1 = polygon { 5, p1, p2, p4, p3, p1 } #declare f2 = polygon { 4, p1, p2, p5, p1 } #declare f3 = polygon { 4, p2, p3, p5, p2 } #declare f4 = polygon { 4, p3, p4, p5, p3 } #declare f5 = polygon { 4, p4, p1, p5, p4 } //Define the pyramid to be the union of its faces. #declare mypyramid = object { union { object{f1} object{f2} object{f3} object{f4} object{f5} } texture {T_Wood3} } mypyramid