29 #ifndef __PACKAGEDSHADER_H__
30 #define __PACKAGEDSHADER_H__
72 Inst< SFNode > _metadata = 0,
73 Inst< SFBool > _isSelected = 0,
74 Inst< SFBool > _isValid = 0,
75 Inst< SFBool > _activate = 0,
76 Inst< SFString > _language = 0,
77 Inst< MFString > _url = 0 );
81 const string &l = language->getValue();
83 ( l ==
"CG" || l ==
"CG_OPENGL_ARB" || l ==
"CG_OPENGL_NV40"
84 || l ==
"CG_OPENGL_NV30" || l ==
"CG_OPENGL_NV20" );
87 Console(LogLevel::Error) <<
"Warning: H3D API compiled without cg support. PackagedShader "
88 <<
" node will not support CG." << endl;
99 virtual bool addField(
const string &_name,
104 virtual void render();
107 virtual void preRender();
110 virtual void postRender();
113 virtual void initCGShaderProgram();
121 CGprofile cg_vertex_profile;
122 CGprofile cg_fragment_profile;
123 CGcontext cg_context;
124 CGprogram cg_vertex_program;
125 CGprogram cg_fragment_program;
Header file for X3DProgrammableShaderObject.
Header file for X3DShaderNode, X3D scene-graph node.
Header file for X3DUrlObject, X3D scene-graph node.
The Field class.
Definition: Field.h:46
AccessType
The different access types that a field can have.
Definition: Field.h:53
A PackagedShader node describes a single file that may contain a number of shaders and combined effec...
Definition: PackagedShader.h:67
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: PackagedShader.h:117
virtual bool isSupported()
Returns true if the shader node type is supported by the browser.
Definition: PackagedShader.h:80
This abstract node type is the base type for all node types that specify arbitrary fields for interfa...
Definition: X3DProgrammableShaderObject.h:64
This abstract node type is the base type for all node types which specify a programmable shader.
Definition: X3DShaderNode.h:61
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
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