ComposedShader

From Web3D.org
Revision as of 02:43, 27 August 2015 by Walroy (Talk | contribs)

Jump to: navigation, search

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. Appropriately typed Prototype node

Attributes

  • There are no other attributes requiring validation.

Schema Validation

Children

Children must appear as follows:

  1. A single, optional IS.
  2. A single, optional node derived from X3DMetadataObject for the metadata field.
  3. From zero to six nodes in total of any of the following:
    1. ImageTexture
    2. MovieTexture
    3. PixelTexture
    4. An appropriately typed Prototype

Attributes

  • There are no other attributes requiring validation.

Schematron validation

TBD