Difference between revisions of "ComposedShader"

From Web3D.org
Jump to: navigation, search
 
Line 32: Line 32:
 
# Any number, including zero, of either:
 
# Any number, including zero, of either:
 
## [[ShaderPart]]
 
## [[ShaderPart]]
## Appropriately typed Prototype node
+
## An appropriately typed Prototype node
  
 
===Attributes===
 
===Attributes===
  
* There are no other attributes requiring validation.
+
* There is no check that the value in the ''language'' field is acceptable.
  
 
==Schema Validation==
 
==Schema Validation==
Line 44: Line 44:
 
Children must appear as follows:
 
Children must appear as follows:
  
 +
# Any number, including zero, of user defined fields.
 
# A single, optional IS.
 
# A single, optional IS.
 
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
 
# A single, optional node derived from ''X3DMetadataObject'' for the ''metadata'' field.
# From zero to six nodes in total of any of the following:
+
# Any number, including zero, of either:
## [[ImageTexture]]
+
## [[ShaderPart]]
## [[MovieTexture]]
+
## An appropriately typed Prototype node
## [[PixelTexture]]
+
## An appropriately typed Prototype
+
  
 
===Attributes===
 
===Attributes===
  
* There are no other attributes requiring validation.
+
* There is no check that the value in the ''language'' field is acceptable.
  
 
==Schematron validation==
 
==Schematron validation==

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