home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computerspiele Selbermachen
/
computerspieleselbermachen.iso
/
pov
/
t1.inc
< prev
next >
Wrap
Text File
|
1994-06-29
|
33KB
|
1,062 lines
// Persistence of Vision Raytracer 2.0
// Standard textures include file
// See textures.doc for info.
#declare Textures_Inc_Temp = version
#version 2.0
//*****************************************************************************
// STONE PIGMENTS
//*****************************************************************************
// Drew Wells' superb Jade. Color map works nicely with other textures, too.
#declare Jade =
pigment
{marble
turbulence 1.8
color_map
{[0.0, 0.8 color red 0.1 green 0.6 blue 0.1
color red 0.0 green 0.3]
[0.8, 1.001 color red 0.1 green 0.6 blue 0.1
color red 0.0 green 0.2]
}
}
// Classic white marble with red veins. Over-worked, like checkers.
#declare Red_Marble =
pigment
{marble
turbulence 1
color_map
{[0.0, 0.8 color red 0.8 green 0.8 blue 0.6
color red 0.8 green 0.4 blue 0.4]
[0.8, 1.001 color red 0.8 green 0.4 blue 0.4
color red 0.8 green 0.2 blue 0.2]
}
}
// White marble with black veins.
#declare White_Marble =
pigment
{marble
turbulence 1
color_map
{[0.0, 0.8 color red 0.9 green 0.9 blue 0.9
color red 0.5 green 0.5 blue 0.5]
[0.8, 1.01 color red 0.5 green 0.5 blue 0.5
color red 0.2 green 0.2 blue 0.2]
}
}
// Light blue and black marble with a thin red vein
// Try changing LBlue and Vein below to modify the marble.
#declare LBlue = color red 0.0 green 0.6 blue 0.6
#declare Vein = color red 0.6 green 0.0 blue 0.0
#declare Blood_Marble =
pigment
{marble
turbulence 2.3
color_map
{[0.0, 0.8 color Black color LBlue]
[0.8, 0.9 color LBlue color Vein]
[0.9, 1.001 color Vein color Black]
}
}
// a grey blue agate -- kind of purplish.
#declare Blue_Agate =
pigment
{agate
color_map
{[0.0, 0.5 color red 0.30 green 0.30 blue 0.50
color red 0.30 green 0.30 blue 0.50]
[0.5, 0.55 color red 0.30 green 0.30 blue 0.50
color red 0.20 green 0.20 blue 0.30]
[0.55, 0.6 color red 0.20 green 0.20 blue 0.30
color red 0.25 green 0.25 blue 0.35]
[0.6, 0.7 color red 0.25 green 0.25 blue 0.35
color red 0.15 green 0.15 blue 0.26]
[0.7, 0.8 color red 0.15 green 0.15 blue 0.26
color red 0.10 green 0.10 blue 0.20]
[0.8, 0.9 color red 0.10 green 0.10 blue 0.20
color red 0.30 green 0.30 blue 0.50]
[0.9, 1.001 color red 0.30 green 0.30 blue 0.50
color red 0.10 green 0.10 blue 0.20]
}
}
// Deep blue agate -- almost glows.
#declare Sapphire_Agate =
pigment
{agate
color_map
{[0.0, 0.3 color blue 0.9
color blue 0.8]
[0.3, 1.001 color blue 0.8
color blue 0.4]
}
}
// Brown and white agate -- very pretty.
#declare Brown_Agate =
pigment
{agate
color_map
{[0.0, 0.5 color White
color red 0.9 green 0.7 blue 0.6]
[0.5, 0.6 color red 0.9 green 0.7 blue 0.6
color red 0.9 green 0.7 blue 0.4]
[0.6, 1.001 color red 0.9 green 0.7 blue 0.4
color red 0.7 green 0.4 blue 0.2]
}
}
#declare Pink_Granite =
pigment
{granite
color_map
{[0.0, 0.4 color Black color Black]
[0.4, 0.45 color Quartz color Quartz]
[0.45, 0.5 color Quartz color Gray]
[0.5, 0.55 color Gray color Feldspar]
[0.55, 0.8 color Feldspar color Feldspar]
[0.8, 1.0 color Feldspar color Orange]
}
}
//*****************************************************************************
// STONE TEXTURES
//*****************************************************************************
// Gray-pink alabaster or marble. Layers are scaled for a unit object
// and relative to each other.
#declare PinkAlabaster =
// Underlying surface is very subtly mottled with bozo
texture
{pigment
{bozo
turbulence 0.25
color_map
{[0, 1 color red 0.9 green 0.75 blue 0.75
color red 0.6 green 0.6 blue 0.6 ]
}
scale 0.4
}
finish{ambient 0.25}
}
// Second layer texture has some filter values, yet a fair amount of color
// Viening is kept quite thin in color map and by the largish scale.
texture
{pigment
{granite
color_map
{[0, 0.9 color DustyRose filter 1 color DustyRose filter 0.5]
[0.9, 1 color DarkSlateGray color DarkSlateGray]
}
scale 2 // Twice as large as unit shape
}
// I know this seem contradictory, but it seems to work!
finish
{specular 1 roughness 0.0001
phong 0.25 phong_size 75
brilliance 4
}
}
//*****************************************************************************
// SKY PIGMENTS
//*****************************************************************************
// Basic Blue Sky w/ clouds.
#declare Blue_Sky =
pigment
{bozo
turbulence 0.3
color_map
{[0.0, 0.5 color red 0.25 green 0.25 blue 0.5
color red 0.25 green 0.25 blue 0.5]
[0.5, 0.6 color red 0.25 green 0.25 blue 0.5
color red 0.7 green 0.7 blue 0.7]
[0.6, 1.001 color red 0.7 green 0.7 blue 0.7
color red 0.3 green 0.3 blue 0.3]
}
}
// Bright Blue Sky w/ very white clouds.
#declare Bright_Blue_Sky =
pigment
{bozo
turbulence 0.56
color_map
{[0.0, 0.5 color red 0.5 green 0.5 blue 1.0
color red 0.5 green 0.5 blue 1.0]
[0.5, 0.6 color red 0.5 green 0.5 blue 1.0
color red 1.0 green 1.0 blue 1.0]
[0.6, 1.01 color red 1.0 green 1.0 blue 1.0
color red 0.5 green 0.5 blue 0.5]
}
}
// Another sky
#declare Blue_Sky2 =
pigment{
agate
color_map {
[ 0, .3 color Blue color Blue ]
[.3, 1 color Blue color White ]
}
scale .75
}
// Small puffs of white clouds
#declare Blue_Sky3 =
pigment{
granite
turbulence 0.1
color_map {
[ 0, .3 color Blue color Blue ]
[.3, 1 color Blue color White ]
}
scale .75
}
// Red sky w/ yellow clouds -- very surreal.
#declare Blood_Sky =
pigment
{bozo
turbulence 0.5
color_map
{[0.0, 0.5 color red 0.9 green 0.7
color red 0.3 green 0.2]
[0.5, 0.6 color red 0.6 green 0.025
color red 0.9 green 0.7]
[0.6, 1.01 color red 0.6 green 0.025
color red 0.6 green 0.025]
}
}
// Black sky with red and purple clouds
// Try adding turbulence values from 0.1 - 5.0 -- CdW
#declare Apocalypse =
pigment
{bozo
color_map
{[0.0, 0.4 color red 0.8
color red 0.4 blue 0.4]
[0.4, 0.6 color red 0.4 blue 0.4
color blue 0.2]
[0.6, 1.01 color blue 0.2
color Black]
}
}
// White clouds w/ transparent sky.
#declare Clouds =
pigment
{bozo
turbulence 0
color_map
{[0.0, 0.1 color red 0.8 green 0.8 blue 0.8
color red 0.8 green 0.8 blue 0.8]
[0.1, 0.5 color red 0.8 green 0.8 blue 0.8
color Clear]
[0.5, 1.001 color Clear
color Clear]
}
}
//*****************************************************************************
// WOODEN PIGMENTS
//*****************************************************************************
// Several wooden pigments by Tom Price:
// A light reddish wood.
#declare Cherry_Wood =
pigment
{wood
turbulence 0.3
color_map
{[0.0, 0.8 color red 0.666 green 0.312 blue 0.2
color red 0.666 green 0.312 blue 0.2]
[0.8, 1.01 color red 0.4 green 0.133 blue 0.066
color red 0.2 green 0.065 b