home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4613
/
diff.rrt
< prev
next >
Wrap
Text File
|
1980-01-06
|
899b
|
53 lines
// Real Ray Tracer
// A concave mirror made with a difference of 2 spheres.
#include "colors.inc"
#include "textures.inc"
object {
difference {
sphere { <0.15 0.5 0.5> 1 }
sphere { <-0.1 0.7 -0.5> 1 }
}
texture { Phong_Mirror }
}
object {
sphere { <-0.7 -0.4 -1> 0.3 }
texture {
color Red
ambient 0.10
diffuse 0.20
reflection 0.7
phong 0.3
phong_size 75
}
}
object {
plane { <0 1 0> -2 }
texture {
checker
texture { Red_Marble scale <0.25 0.25 0.25> }
texture { Jade scale <0.3 0.3 0.3> }
scale <1 0 1>
ambient 0.15
diffuse 0.35
}
}
camera {
location <0 0 -3>
point_at <0 0 0>
}
environment {
clouds
color_map { [0 1 color Blue color White ] }
}
object { light_source { <2 5 -4> color White } }
object { light_source { <-3 4 -3> color White } }
end.