home *** CD-ROM | disk | FTP | other *** search
- //FIG2-5.PI
-
- include "d:\polyray\include\colors.inc"
- include "d:\polyray\include\texture.inc"
-
- viewpoint {
- from <3, 2, 3>
- at <-3.0, 0.0, 4>
- up <0.0, 1.0, 0.0>
- aspect 1.6
- }
-
- // LIGHT_SOURCE
- light <-10, 10, -10>
-
- haze 0.95, 10, black
-
- // PLANE (Polygon)
- object {
- polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
- translate <0, -1, 0>
- texture { checker matte_white, matte_black scale<5, 5, 5>}
- }
-
- // SPHERE
- object {
- sphere <0, 0.5, 0>, 1
- texture
- {
- surface
- {
- color red
- ambient 0.1
- diffuse 0.7
- specular white, 0.5
- reflection white, 0.1
- transmission white, 1.0,1
- }
- }
- }
-
- // SPHERE
- object {
- sphere <0, 0.5, 2>, 1
- texture
- {
- surface
- {
- color red
- ambient 0.1
- diffuse 0.7
- specular white, 0.5
- reflection white, 0.1
- transmission white, 0.8,1
- }
- }
- }
-
- // SPHERE
- object {
- sphere <0, 0.5, 4>, 1
- texture
- {
- surface
- {
- color red
- ambient 0.1
- diffuse 0.7
- specular white, 0.5
- reflection white, 0.1
- transmission white, 0.6,1
- }
- }
- }
-
- // SPHERE
- object {
- sphere <0, 0.5, 6>, 1
- texture
- {
- surface
- {
- color red
- ambient 0.1
- diffuse 0.7
- specular white, 0.5
- reflection white, 0.1
- transmission white, 0.4,1
- }
- }
- }
-
- // SPHERE
- object {
- sphere <0, 0.5, 8>, 1
- texture
- {
- surface
- {
- color red
- ambient 0.1
- diffuse 0.7
- specular white, 0.5
- reflection white, 0.1
- transmission white, 0.2,1
- }
- }
- }
-
-
-