Difference between revisions of "ComposedShader"

From Web3D.org
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==ComposedShader==
 
==ComposedShader==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shaders.html#ComposedShader ComposedShader]
  
 
<pre>
 
<pre>
CADAssembly : X3DGroupingNode, X3DProductStructureChildNode {
+
ComposedShader : X3DShaderNode, X3DProgrammableShaderObject {
   MFNode   [in]     addChildren
+
   SFNode   [in,out] metadata   NULL [X3DMetadataObject]
  MFNode   [in]     removeChildren
+
   MFNode  [in,out] parts      []   [ShaderPart]
   MFNode  [in,out] children      []       [X3DProductStructureChildNode]
+
   SFBool   [out]   isSelected
   SFNode   [in,out] metadata      NULL    [X3DMetadataObject]
+
  SFBool  [out]   isValid
   SFString [in,out] name ""
+
   SFBool  [in]     activate
   SFVec3f  []      bboxCenter     0 0 0    (-∞,∞)
+
  SFString []      language  ""
   SFVec3f  []       bboxSize      -1 -1 -1 [0,∞) or −1 −1 −1
+
 
 +
   # And any number of:
 +
  fieldType []      fieldName
 +
  fieldType [in]     fieldName
 +
   fieldType [out]   fieldName
 +
  fieldType [in,out] fieldName
 
}
 
}
 
</pre>
 
</pre>
The CADAssembly node holds a set of assemblies or parts grouped together.
 
  
 +
==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]]
 +
## An appropriately typed Prototype node
 +
 +
===Attributes===
 +
 +
* There is no check that the value in the ''language'' field is acceptable.
 +
 +
==Schema 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]]
 +
## An appropriately typed Prototype node
 +
 +
===Attributes===
  
The ''children'' field can contain X3DProductStructureChildNode types. Each child will be either a sub-assembly or a part.
+
* There is no check that the value in the ''language'' field is acceptable.
  
 +
==Schematron validation==
  
The ''name'' field documents the name of this CADAssembly.
+
TBD
  
 
* [[Node Reference]]
 
* [[Node Reference]]

Latest revision as of 02:46, 27 August 2015

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:

  1. Any number, including zero, of user defined fields.
  2. A single, optional IS.
  3. A single, optional node derived from X3DMetadataObject for the metadata field.
  4. Any number, including zero, of either:
    1. ShaderPart
    2. An appropriately typed Prototype node

Attributes

  • There is no check that the value in the language field is acceptable.

Schema Validation

Children

Children must appear as follows:

  1. Any number, including zero, of user defined fields.
  2. A single, optional IS.
  3. A single, optional node derived from X3DMetadataObject for the metadata field.
  4. Any number, including zero, of either:
    1. ShaderPart
    2. An appropriately typed Prototype node

Attributes

  • There is no check that the value in the language field is acceptable.

Schematron validation

TBD