materialProperty derived from ygNode

Description: adjusts the material properties of all nodes below it

notes:
Category: Deprecated
Author: Alex Hill
11/01/01
Revision: 04/01/04 Alex Hill - added "alpha" message to adjust transparency

    Messages
ambient three floats, [absolute | rel | relative] set or change the ambient color of the material
diffuse three floats, [absolute | rel | relative] set or change the diffuse color of the material
emission three floats, [absolute | rel | relative] set or change the emission color of the material
specular three floats, [absolute | rel | relative] set or change the specular color of the material
alpha float, [absolute | rel | relative] set or change the alpha of the material
shininess float, [absolute | rel | relative] set or change the shininess of the material
    Comments

constructor materialProperty

destructor ~materialProperty

method reset

1 reset all colors and shininess to zero

method message

1 set or change the ambient color of the material
2 set or change the diffuse color of the material
3 set or change the emission color of the material
4 set or change the specular color of the material
5 set or change the alpha of the material
6 set or change the shininess of the material

method app

1 if first frame then set the geoset list

method setGSetList

1 if node type is a pfGeode
1.1 for each geoset
1.1.1 add geoset to the geoset list
1.1.2 duplicate geometry state to prevent material property sharing
2 else, if node type is a pfGroup
2.1 call setGSetList recursively on all children

method setColor

method changeColor

method setAlpha

method changeAlpha

method setShininess

method changeShininess