instantreality 1.0

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

ShaderPart

The ShaderPart node defines the source for a single object to be used by a ComposedShader node. The source is not required to be a complete shader for all of the vertex/fragment processing.

Inheritance

Code

XML encoding
<ShaderPart type='VERTEX'
profile=''
url=''
logFeature=''
 />
Classic encoding
ShaderPart {
	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 profile MFString inputOutput defines one profile per url entry. The profile values depend on the "type" setting and runtime-system. The "auto" value selects the default setting
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.
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element