29 #ifndef __ENVIRONMENTMAPSHADER_H__
30 #define __ENVIRONMENTMAPSHADER_H__
89 Inst< SFNode > _metadata = 0,
90 Inst< SFBool > _isSelected = 0,
91 Inst< SFBool > _isValid = 0,
92 Inst< SFBool > _activate = 0,
93 Inst< SFString > _language = 0,
94 Inst< MFShaderPart > _parts = 0,
95 Inst< SFBool > _suppressUniformWarnings = 0,
96 Inst< MFString > _fragmentShaderString = 0,
97 Inst< MFString > _vertexShaderString = 0,
98 Inst< SFEnvironmentTextureNode > _environmentMap = 0,
99 Inst< SFFloat > _fresnel = 0,
100 Inst< SFString > _type = 0 );
Header file for H3DGeneratedFragmentShaderNode.
Contains the SFMatrix4f field class.
Header file for X3DEnvironmentTextureNode, X3D abstract scene-graph node.
Header file for X3DTexture2DNode, X3D scene-graph node.
The ComposedShader node defines a shader where the individual source files are not individually progr...
Definition: ComposedShader.h:77
DependentSFNode are modified TypedSFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:294
The EnvironmentMapShader node defines a shader for environment mapping of shiny objects.
Definition: EnvironmentMapShader.h:75
virtual string addUniformFields(ComposedShader *shader)
Adds uniform fields to the shader.
Definition: EnvironmentMapShader.cpp:142
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: EnvironmentMapShader.h:145
virtual void getVaryingVariables(vector< VaryingVariable > &variables)
Get the varying variables used by the shader generator.
Definition: EnvironmentMapShader.cpp:87
EnvironmentMapShader(Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0, Inst< SFBool > _isSelected=0, Inst< SFBool > _isValid=0, Inst< SFBool > _activate=0, Inst< SFString > _language=0, Inst< MFShaderPart > _parts=0, Inst< SFBool > _suppressUniformWarnings=0, Inst< MFString > _fragmentShaderString=0, Inst< MFString > _vertexShaderString=0, Inst< SFEnvironmentTextureNode > _environmentMap=0, Inst< SFFloat > _fresnel=0, Inst< SFString > _type=0)
Constructor.
Definition: EnvironmentMapShader.cpp:49
H3DUniquePtr< SFEnvironmentTextureNode > environmentMap
Contains the X3DEnvironmentTextureNode to use for environment mapping.
Definition: EnvironmentMapShader.h:108
virtual string getFragmentShaderString()
Returns the shader code for the fragment shader.
Definition: EnvironmentMapShader.cpp:104
H3DUniquePtr< SFFloat > fresnel
The fresnel field specifies if the fresnel effect should be used in the reflection model and if so ho...
Definition: EnvironmentMapShader.h:124
H3DUniquePtr< SFString > type
The type field determines how to lookup into the environment map.
Definition: EnvironmentMapShader.h:142
DependentSFNode< X3DEnvironmentTextureNode, FieldRef< H3DDisplayListObject, H3DDisplayListObject::DisplayList, &H3DDisplayListObject::displayList >, true > SFEnvironmentTextureNode
The SFEnvironmentTextureNode field is dependent on the displayList field of the containing X3DEnviron...
Definition: EnvironmentMapShader.h:85
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
We use the Field's lazy evaluation mechanisms to manage the GL display lists for rendering,...
Definition: H3DDisplayListObject.h:60
H3DUniquePtr< DisplayList > displayList
The DisplayList instance handling the OpenGL caching of this object.
Definition: H3DDisplayListObject.h:256
H3DDisplayListObject(Inst< DisplayList > _displayList=0)
Constructor.
Definition: H3DDisplayListObject.cpp:70
The H3DGeneratedFragmentShaderNode node is the base class for shader generator nodes that specify a f...
Definition: H3DGeneratedFragmentShaderNode.h:44
This abstract node type is the base type for all node types that specify cubic environment map source...
Definition: X3DEnvironmentTextureNode.h:57
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