home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 1995 January
/
pcw-0195.iso
/
polymore
/
fig2-9.pi
< prev
Wrap
Text File
|
1994-09-25
|
1KB
|
72 lines
// FIG2-9.PI
include "d:\polyray\include\colors.inc"
include "d:\polyray\include\texture.inc"
//////////////////////////////////
// The scene starts here
define Water
texture {
noise surface {
color <0.4, 0.4, 1.0>
normal ripple_normal
frequency 100
bump_scale 1
ambient 0.3
diffuse 0.3
specular white, 0.7
reflection 0.9
microfacet Reitz 10
}
scale<10, 1, 10>
}
// Make a rippled sea
// PLANE (Polygon)
object {
polygon 4, <-100,0,100>, <-100,0,-100>, <100,0,-100>, <100,0,100>
translate <0, -1, 0>
water
}
define dents
texture {
noise surface {
color <1, 0, 0>
normal dented_normal
frequency 2
bump_scale 1
ambient white, 0.2
diffuse white, 0.5
specular 0.7
microfacet Reitz 10
}
scale <0.2, 0.2, 0.2>
}
// Sphere
object
{
sphere<0, 0, 5>, 4
shiny_red
dents
}
// The scene ends here
//////////////////////////////////
// Lights!
light<-5, 5, -5>
haze 0.95, 10, black
// Camera!
viewpoint
{
from <0, 0, -1>
at <0, 0, 5>
up <0, 1, 0>
aspect 1.6
}