home *** CD-ROM | disk | FTP | other *** search
- // "HEXAGON.PI" OR FIG2-7.PI
-
- include "d:\polyray\include\colors.inc"
-
- //////////////////////////////////
- // The scene starts here
-
- // Make a hexagon floor in red, white and blue
- // PLANE (Polygon)
- object {
- polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
- translate <0, -1, 0>
- texture { hexagon matte_red, matte_white, matte_blue }
- }
-
- // Sphere
- object
- {
- sphere<0, 0, 5>, 4
- shiny_red
- }
-
- // The scene ends here
- //////////////////////////////////
-
- // Lights!
- light<-5, 5, -5>
-
- // Camera!
- viewpoint
- {
- from <0, 0, -1>
- at <0, 0, 5>
- up <0, 1, 0>
- aspect 1.6
- }
-
-