home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ANews 3
/
AnewsCD3.iso
/
atari
/
GRAPHX
/
POV
/
68030.060
/
POV31G30
/
POVRAY_3.1G
/
INCLUDE
/
GLASS.INC
< prev
next >
Wrap
Text File
|
1999-10-30
|
3KB
|
160 lines
#ifdef(Glass_Inc_Temp)
// do nothing
#else
#declare Glass_Inc_Temp=version;
#ifdef(View_POV_Include_Stack)
# debug "including glass.inc\n"
#end
/*
Persistence of Vision Raytracer Version 3.1
Glass finishes and textures
*/
// Changes in ver. 3.1 moved refraction and ior to the interior statment.
// Use I_Glass in conjunction with each of the finish statments below.
#warning "\nDue to changes in version 3.1, you must add interior{ I_Glass} to all objects calling GLASS.INC textures and finishes...\n"
// Glass Interior
#declare I_Glass=
interior {
ior 1.5
}
// Glass Finishes
#declare F_Glass1 =
finish {
specular 1
roughness 0.001
ambient 0
diffuse 0
reflection 0.1
}
#declare F_Glass2 =
finish {
ambient 0
diffuse 0
reflection 0.5
phong 0.3
phong_size 60
}
#declare F_Glass3 =
finish {
ambient 0.1
diffuse 0.1
reflection 0.1
specular 0.8
roughness 0.003
phong 1
phong_size 400
}
#declare F_Glass4 =
finish {
ambient 0.1
diffuse 0.1
reflection .25
specular 1
roughness 0.001
}
// Glass Textures
// Simple clear glass
#declare T_Glass1 =
texture {
pigment { color rgbf<1.0, 1.0, 1.0, 0.7> }
finish { F_Glass1 }
}
// More like an acrylic plastic
#declare T_Glass2 =
texture {
pigment { color rgbf<1.0, 1.0, 1.0, 1.0> }
finish { F_Glass2 }
}
// An excellent lead crystal glass!
#declare T_Glass3 =
texture {
pigment { color rgbf <0.98, 0.98, 0.98, 0.9> }
finish { F_Glass3 }
}
#declare T_Glass4 =
texture {
pigment { color rgbf <0.98, 1.0, 0.99, 0.75> }
finish { F_Glass4 }
}
#declare T_Old_Glass=
texture {
finish { F_Glass4 }
pigment { color rgbf <0.8, 0.9, 0.85, 0.85> }
}
#declare T_Winebottle_Glass=
texture {
finish { F_Glass4 }
pigment { color rgbf <0.4, 0.72, 0.4, 0.6> }
}
#declare T_Beerbottle_Glass=
texture {
finish { F_Glass4 }
pigment { color rgbf <0.7, 0.5, 0.1, 0.6> }
}
// A few color variations on Norm's glass
// Ruby glass
#declare T_Ruby_Glass =
texture {
finish { F_Glass4 }
pigment { color rgbf <0.9, 0.1, 0.2, 0.8> }
}
#declare T_Green_Glass =
texture {
pigment { color rgbf <0.8, 1, 0.95, 0.9> }
finish { F_Glass3 }
}
#declare T_Dark_Green_Glass=
texture {
finish { F_Glass4 }
pigment { color rgbf <0.1, 0.7, 0.8, 0.8> }
}
#declare T_Yellow_Glass=
texture {
finish { F_Glass4 }
pigment { color rgbf <0.8, 0.8, 0.2, 0.8> }
}
// Orange/Amber glass
#declare T_Orange_Glass=
texture {
finish { F_Glass4 }
pigment { rgbf <1.0, 0.5, 0.0, 0.8> }
}
// Vicks bottle, glass
#declare T_Vicksbottle_Glass=
texture {
finish { F_Glass4 }
pigment { color rgbf <0.1, 0.15, 0.5, 0.9> }
}
#version Glass_Inc_Temp;
#end