Difference between revisions of "ComposedShader"
From Web3D.org
Line 6: | Line 6: | ||
<pre> | <pre> | ||
ComposedShader : X3DShaderNode, X3DProgrammableShaderObject { | ComposedShader : X3DShaderNode, X3DProgrammableShaderObject { | ||
− | SFNode [in,out] metadata NULL [X3DMetadataObject] | + | SFNode [in,out] metadata NULL [X3DMetadataObject] |
− | MFNode [in,out] parts | + | MFNode [in,out] parts [] [ShaderPart] |
SFBool [out] isSelected | SFBool [out] isSelected | ||
SFBool [out] isValid | SFBool [out] isValid | ||
SFBool [in] activate | SFBool [in] activate | ||
− | SFString [] language | + | SFString [] language "" |
# And any number of: | # And any number of: | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
− | + | ==DTD Validation== | |
+ | ===Children=== | ||
− | + | Children must appear as follows: | |
+ | # Any number, including zero, of user defined fields. | ||
+ | # A single, optional IS. | ||
+ | # A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field. | ||
+ | # Any number, including zero, of either: | ||
+ | ## [[ShaderPart]] | ||
+ | ## Appropriately typed Prototype node | ||
− | + | ===Attributes=== | |
+ | * There are no other attributes requiring validation. | ||
− | + | ==Schema Validation== | |
+ | |||
+ | ===Children=== | ||
+ | |||
+ | Children must appear as follows: | ||
+ | |||
+ | # A single, optional IS. | ||
+ | # A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field. | ||
+ | # From zero to six nodes in total of any of the following: | ||
+ | ## [[ImageTexture]] | ||
+ | ## [[MovieTexture]] | ||
+ | ## [[PixelTexture]] | ||
+ | ## An appropriately typed Prototype | ||
+ | |||
+ | ===Attributes=== | ||
+ | |||
+ | * There are no other attributes requiring validation. | ||
+ | |||
+ | ==Schematron validation== | ||
+ | |||
+ | TBD | ||
* [[Node Reference]] | * [[Node Reference]] |
Revision as of 09:43, 27 August 2015
Contents
ComposedShader
Specification Link: ComposedShader
ComposedShader : X3DShaderNode, X3DProgrammableShaderObject { SFNode [in,out] metadata NULL [X3DMetadataObject] MFNode [in,out] parts [] [ShaderPart] SFBool [out] isSelected SFBool [out] isValid SFBool [in] activate SFString [] language "" # And any number of: fieldType [] fieldName fieldType [in] fieldName fieldType [out] fieldName fieldType [in,out] fieldName }
DTD Validation
Children
Children must appear as follows:
- Any number, including zero, of user defined fields.
- A single, optional IS.
- A single, optional node derived from X3DMetadataObject for the metadata field.
- Any number, including zero, of either:
- ShaderPart
- Appropriately typed Prototype node
Attributes
- There are no other attributes requiring validation.
Schema Validation
Children
Children must appear as follows:
- A single, optional IS.
- A single, optional node derived from X3DMetadataObject for the metadata field.
- From zero to six nodes in total of any of the following:
- ImageTexture
- MovieTexture
- PixelTexture
- An appropriately typed Prototype
Attributes
- There are no other attributes requiring validation.
Schematron validation
TBD