home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4613
/
map.rrt
< prev
next >
Wrap
Text File
|
1980-01-06
|
909b
|
57 lines
// Real Ray Tracer
// Example of texture mapping and transparency
#include "colors.inc"
#include "textures.inc"
object {
bound {
object {
torus { <0 0 0> <0 0 1> 1 0.3 rotate <30 0 0> }
texture { Phong_Transparent }
}
}
by sphere { <0 0 0> 1.3 }
}
object {
plane { <0 0 -1> -3 }
texture {
image_map { <0 0 0> <1 0 0> <0 1 0> 3.4 "Crawford.tga" }
scale <1 0.75 1>
rotate <0 0 15>
ambient 0.30
diffuse 0.60
}
}
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
reflection 0.75
}
}
camera {
location <0 0 -2.5>
direction <0 0 1>
}
environment {
background color Blue
}
object {
light_source { <2 8 -9> color White }
}
object {
light_source { <-3 7 -10> color White }
}
end.