home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4613
/
bound.rrt
< prev
next >
Wrap
Text File
|
1980-01-06
|
1KB
|
56 lines
// Real Ray Tracer
// A demo of bounding volumes.
#include "colors.inc"
#include "textures.inc"
object {
bound {
object { sphere { < 0.3 0.3 0.3> 0.25 }
texture { Blood_Marble scale <0.1 0.1 0.1>
diffuse 0.45 phong 0.25 phong_size 90 } }
object { sphere { < 0.3 -0.3 -0.3> 0.25 }
texture { Red_Marble scale <0.1 0.1 0.1>
diffuse 0.40 phong 0.25 phong_size 90 } }
object { sphere { <-0.3 -0.3 0.3> 0.25 }
texture { Blue_Sky3 scale <0.3 0.3 0.3>
diffuse 0.45 phong 0.25 phong_size 90 } }
object { sphere { <-0.3 -0.3 -0.3> 0.25 } }
object { sphere { <-0.3 0.3 0.3> 0.25 } }
object { sphere { < 0.3 -0.3 0.3> 0.25 } }
}
by box { <-0.55 -0.55 -0.55> <0.55 0.55 0.55> }
texture {
Phong_Mirror
}
}
object {
plane { <0 1 0> -2 }
texture {
Jade
scale <0.4 0.4 0.4>
ambient 0.15
diffuse 0.50
}
}
camera {
location <0.17 2 -3>
point_at <0 0 0>
angle 15
}
environment {
background color Blue
}
object {
light_source { <2 5 -4> color White }
}
object {
light_source { <-3 4 -3> color White }
}
end.