home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4613
/
transpar.rrt
< prev
next >
Wrap
Text File
|
1980-01-06
|
736b
|
53 lines
// Real Ray Tracer
// Example of transparency
#include "colors.inc"
#include "textures.inc"
object {
sphere { <0 0 0> 0.3 }
texture {
Phong_Transparent
ior 1.76
}
}
object {
sphere { <-1 -0.45 3> 0.4 }
texture {
color Red
ambient 0.15
diffuse 0.30
phong 0.25
phong_size 75
}
}
object {
plane { <0 1 0> -1 }
texture {
checker color Yellow color red 1.0 blue 0.75
scale <1 0 1>
ambient 0.15
diffuse 0.30
}
}
camera {
location <0 1 -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.