instantreality 1.0

Component:
Shaders
Status:
fully implemented
Structure type:
abstract
Standard:
Avalon

SingleShader

A SingleShader node describes a file that may contain a single shader.

Inheritance

Code

XML encoding
<SingleShader logFeature=''
language='auto'
 />
Classic encoding
SingleShader {
	logFeature [""]
	language "auto"
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
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
SFBool activate SFBool inputOnly The activate field forces the shader to activate the contained objects.
SFBool isSelected SFBool outputOnly The isSelected output field is used to indicate that this shader instance is the one selected for use by the browser. A TRUE value indicates that this instance is in use.
SFBool isValid SFBool outputOnly The isValid field is used to indicate whether the current shader objects can be run as a shader program.
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element
SFString language SFString initializeOnly auto CG; GLSL; HLSL Indicates to the browser which shading language is used for the source file(s). This field may be used as a hint for the browser if the shading language is not immediately determinable from the source.