home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 1995 January
/
pcw-0195.iso
/
polyray
/
dat
/
texture
/
indexed3.pi
< prev
next >
Wrap
Text File
|
1994-12-31
|
777b
|
43 lines
// Sample Polyray file
// A gradient texture with changing 'alpha' values
//
viewpoint {
from <0, 5, -10>
at <0,0,0>
up <0,1,0>
angle 35
resolution 256, 256
aspect 1
}
include "..\colors.inc"
include "..\texture.inc"
background midnightblue
light 0.8*white, <-10, 7, -5>
light 0.8*white, < 10, 7, -5>
define pink_glass
texture {
surface {
ambient 0
diffuse 0.05
specular 0.2
transmission pink, 0.7, 1.5
}
}
define index_tex_map
texture_map([0, 1, pink_glass, mirror])
object {
sphere <0, 0, 0>, 2
texture { indexed noise(3*P, 1), index_tex_map }
}
object {
disc <0, -2, 0>, <0, 1, 0>, 30
texture { special matte { color red_marble_map[granite_fn] } }
}