29 #ifndef __MATERIAL_H__
30 #define __MATERIAL_H__
83 Material( Inst< DisplayList > _displayList = 0,
84 Inst< SFFloat > _ambientIntensity = 0,
85 Inst< SFColor > _diffuseColor = 0,
86 Inst< SFColor > _emissiveColor = 0,
87 Inst< SFNode > _metadata = 0,
88 Inst< SFFloat > _shininess = 0,
89 Inst< SFColor > _specularColor = 0,
90 Inst< SFFloat > _transparency = 0 );
93 virtual void render();
99 return GL_COLOR_BUFFER_BIT | GL_LIGHTING_BIT;
105 return transparency->getValue() > 0;
Contains the SFColor field class.
Contains the SFFloat field class.
Header file for X3DMaterialNode, X3D scene-graph node.
The Material node specifies surface material properties for associated geometry nodes and is used by ...
Definition: Material.h:79
H3DUniquePtr< SFFloat > ambientIntensity
The ambientIntensity field specifies how much ambient light from light sources this surface shall ref...
Definition: Material.h:119
virtual GLbitfield getAffectedGLAttribs()
Returns a bitmask of the OpenGL attrib bits that will be affected by this node.
Definition: Material.h:98
H3DUniquePtr< SFFloat > shininess
Shininess effect the specular highlights.
Definition: Material.h:152
H3DUniquePtr< SFFloat > transparency
The transparency field specifies how "clear" an object is, with 1.0 being completely transparent,...
Definition: Material.h:171
H3DUniquePtr< SFColor > diffuseColor
The diffuseColor field reflects all light sources depending on the angle of the surface with respect ...
Definition: Material.h:130
H3DUniquePtr< SFColor > specularColor
The color of the specular highlights.
Definition: Material.h:161
virtual bool isTransparent()
This function checks the transparency field to determine if the material requires that the geometry i...
Definition: Material.h:104
H3DUniquePtr< SFColor > emissiveColor
The emissiveColor field models "glowing" objects.
Definition: Material.h:141
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Material.h:174
This is the base node type for all Material nodes.
Definition: X3DMaterialNode.h:41
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194