home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4613
/
lamp.rrt
< prev
next >
Wrap
Text File
|
1980-01-12
|
1KB
|
78 lines
// Real Ray Tracer
// A demo of bounding volumes.
#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"
object {
bound {
difference {
intersection {
object { Cylinder_Y scale <0.3 1 0.3> }
slab { <0 1 0> -0.5 0.5 }
}
union {
sphere { <0 0 -0.3> 0.2 }
object { Cylinder_Y scale <0.2828 1 0.2828> }
}
}
}
by sphere { <0 0 0> 0.6 }
texture {
image_map { <-0.5 -0.5 0> <1 0 0> <0 1 0> 1 "marble.tga" }
ambient 0.35
phong 0.25
phong_size 90
}
}
object {
plane { <1 0 -0.5> -1.25 }
texture { Mirror }
}
object {
plane { <-1 0 -0.5> -1.25 }
texture { Mirror }
}
object {
plane { <0 0 -1> -0.5 }
texture {
checker color Yellow color Violet
scale <0.2 0.2 0>
ambient 0.15
diffuse 0.25
}
}
object {
plane { <0 1 0> -1.5 }
texture {
checker color Yellow color red 1.0 blue 0.75
scale <0.3 0 0.3>
ambient 0.15
diffuse 0.25
}
}
camera {
location <0 0 -3>
direction <0 0 3>
}
environment {
background color Blue
}
object {
light_source { <1.25 6.7 -7.5> color White }
}
object {
light_source { <0 0.1 0> color White }
}
end.