PackagedShader
A PackagedShader node describes a single file that may contain a number of shaders and combined effects.
Inheritance
Code
XML encoding
<PackagedShader url='' language='auto' logFeature='' />
Classic encoding
PackagedShader { url [""] language "auto" logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
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 | ||
url | MFString | inputOutput | Specifiers the URL from which the shader source is read. | |||
activate | SFBool | inputOnly | The activate field forces the shader to activate the contained objects. | |||
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. | |||
isValid | SFBool | outputOnly | The isValid field is used to indicate whether the current shader objects can be run as a shader program. | |||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
language | SFString | inputOutput | auto | CgFX; D3D9FX; D3D10FX | 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. |