Materials File Format
Material types are stored in *.txt files and in the following format:
Material [Name]
[Name] indicates material name.
SetColor [value] (value=0,1,or2)
0 - Color off
1 - Color by specified value
2 - Leave existing color setting
If value=1, Specify color by:
Color [r] [g] [b]
r,g,b are between 0 to 255
SetAmbient [value] (value=0,1,or2)
0 - Ambient off
1 - Ambient by specified value
2 - Leave existing ambient setting
If value=1, Specify ambient by:
Ambient [r] [g] [b]
r,g,b are between 0 to 255
SetSpecular [value] (value=0,1,or2)
0 - Specular off
1 - Specular by specified value
2 - Leave existing specular setting
If value=1, Specify specular by:
Specular [r] [g] [b]
r,g,b are between 0 to 255
SetTransparency [value] (value=0,1,or2)
0 - Transparency off
1 - Transparency by specified value
2 - Leave existing transparency setting
If value=1, Specify transparency by:
Transparency [value] (value is between 0 to 100)
SetGloss [value] (value=0,1,or2)
0 - Gloss off
1 - Gloss by specified value
2 - Leave existing gloss setting
If value=1, Specify gloss by:
Gloss [value] (value is between 1 to 100)
SetMirror [value] (value=0,1,or2)
0 - Mirror off
1 - Mirror by specified value
2 - Leave existing mirror setting
If value=1, Specify mirror by:
Mirror [value] (value is between 0 to 100)
SetTexture [value] (value=0,1,or2)
0 - Texture off
1 - Texture by specified file
2 - Leave existing texture setting
If value=1, Specify texture by:
TextureFile [file path]
TextureMap [value] (value is 0,1,or2)
TextureUnum [value]
TextureVnum [value]
TextureRotate [value]
The first word in each line must start at the start of the line and is case specific. More over all name fields should be separated from the first word by one and only one space. The description of a new material begins on a line that starts with the word "Material" followed by the materials name.