home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
p
/
ply15dat.zip
/
SINSPH.PI
< prev
next >
Wrap
Text File
|
1992-09-19
|
784b
|
45 lines
define picture_res 80
viewpoint {
from <0, 0, -10>
at <0,0,0>
up <0,1,0>
angle 30
aspect 2
resolution 2*picture_res, picture_res
}
file_flush picture_res
background <0, 0, 0>
light <-10,3, -20>
define sin_color_offset (sin(3.14 * fmod(x*y*z, 1)) + 1) / 2
define sin_color <sin_color_offset, 0, 1 - sin_color_offset>
define xyz_sin_texture
texture {
special surface {
color sin_color
ambient 0.2
diffuse 0.8
specular white, 0.5
microfacet Reitz 10
}
}
object {
sphere <0, 0, 0>, 1
xyz_sin_texture
translate <-2.5, 0, 0>
}
object {
sphere <0, 0, 0>, 1
xyz_sin_texture
}
object {
sphere <0, 0, 0>, 1
xyz_sin_texture
translate < 2.5, 0, 0>
}