instantreality 1.0

Component:
Shaders
Status:
fully implemented
Structure type:
concrete
Standard:
X3D3.1

ShaderProgram

The ShaderProgram node provides the source and interface to a self contained program that occupies one part of the rendering process: either a vertex or fragment shader.

Inheritance

Code

XML encoding
<ShaderProgram type='VERTEX'
profile=''
url=''
logFeature=''
 />
Classic encoding
ShaderProgram {
	type "VERTEX"
	profile [""]
	url [""]
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
SFString type SFString initializeOnly VERTEX VERTEX; FRAGMENT; GEOMETRY Indicates whether this object shall be compiled as a vertex shader, fragment shader or geo shader type.
MFString url MFString inputOutput cdata Points to a shader file or contains shader code. The shader code will be interpreted according to the type field. When the url field contains no values ([]), this object instance is ignored.
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element