element ShaderPart
diagram x3d-4.0_diagrams/x3d-4.0_p216.png
type extension of X3DNodeMixedContent
properties
content complex
mixed true
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
element ComposedShader
group LoadSensorChildContentModel
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

                    DEF defines a unique ID name for each node, referenceable by other nodes.
               
USE  xs:IDREF        
appinfo

                    USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
               
class  xs:NMTOKENS        
appinfo

                    The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
id  xs:NMTOKEN        
appinfo

                    The id attribute is a unique identifier, reserved for use by HTML5/DOM pages, independent of DEF labeling and internal X3D node referencing.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
style  SFString        
appinfo

                    The style attribute provides an inline block of CSS for element styling, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
type  xs:NMTOKEN    VERTEX    
description  SFString        
appinfo
added in X3D version 4
load  SFBool    true    
autoRefresh  derived by: SFTime    0    
autoRefreshTimeLimit  derived by: SFTime    3600    
url  MFString        
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
containerField  containerFieldChoicesShaderPart    parts    
documentation
parent ComposedShader node
annotation
appinfo
<!-- optional values, can be extended -->
<xs:attribute name="type" type="shaderPartTypeValues"/>
<xs:attribute name="sourceCode" type="xs:string" fixed="inputOutputField">
<xs:annotation>
<xs:appinfo>Embedded scripting source code can be contained within the parent node as a plain-text CDATA block, without requiring escaping of special characters.</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name="additionalInterface" type="xs:string" default="X3DUrlObject"/>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Shaders"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                ShaderPart can contain a CDATA section of plain-text source code.
           
source <xs:element name="ShaderPart">
 
<xs:annotation>
   
<xs:appinfo>
     
<!-- optional values, can be extended -->
     
<xs:attribute name="type" type="shaderPartTypeValues"/>
     
<xs:attribute name="sourceCode" type="xs:string" fixed="inputOutputField">
       
<xs:annotation>
         
<xs:appinfo>Embedded scripting source code can be contained within the parent node as a plain-text CDATA block, without requiring escaping of special characters.</xs:appinfo>
       
</xs:annotation>
     
</xs:attribute>
     
<xs:attribute name="additionalInterface" type="xs:string" default="X3DUrlObject"/>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Shaders"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                ShaderPart can contain a CDATA section of plain-text source code.
           
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shaders.html#ShaderPart"/>
 
</xs:annotation>
 
<xs:complexType mixed="true">
   
<xs:complexContent>
     
<xs:extension base="X3DNodeMixedContent">
       
<xs:sequence>
         
<xs:element ref="IS" minOccurs="0"/>
         
<xs:group ref="ChildContentModelCore" minOccurs="0">
           
<xs:annotation>
             
<xs:documentation>metadata</xs:documentation>
           
</xs:annotation>
         
</xs:group>
       
</xs:sequence>
       
<xs:attribute name="type" type="xs:NMTOKEN" default="VERTEX"/>
       
<xs:attribute name="description" type="SFString">
         
<xs:annotation>
           
<xs:appinfo>added in X3D version 4</xs:appinfo>
         
</xs:annotation>
       
</xs:attribute>
       
<xs:attribute name="load" type="SFBool" default="true"/>
       
<xs:attribute name="autoRefresh" default="0">
         
<!-- type="SFTimeNonNegative" -->
         
<xs:simpleType>
           
<xs:restriction base="SFTime">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="autoRefreshTimeLimit" default="3600">
         
<!-- type="SFTimeNonNegative" -->
         
<xs:simpleType>
           
<xs:restriction base="SFTime">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="url" type="MFString">
         
<xs:annotation>
           
<xs:appinfo>
             
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
             
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
           
</xs:appinfo>
         
</xs:annotation>
       
</xs:attribute>
       
<xs:attribute name="containerField" type="containerFieldChoicesShaderPart" default="parts">
         
<xs:annotation>
           
<xs:documentation>parent ComposedShader node</xs:documentation>
         
</xs:annotation>
       
</xs:attribute>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute ShaderPart/@type
type xs:NMTOKEN
properties
default VERTEX
source <xs:attribute name="type" type="xs:NMTOKEN" default="VERTEX"/>

attribute ShaderPart/@description
type SFString
annotation
appinfo
added in X3D version 4
source <xs:attribute name="description" type="SFString">
 
<xs:annotation>
   
<xs:appinfo>added in X3D version 4</xs:appinfo>
 
</xs:annotation>
</xs:attribute>

attribute ShaderPart/@load
type SFBool
properties
default true
source <xs:attribute name="load" type="SFBool" default="true"/>

attribute ShaderPart/@autoRefresh
type restriction of SFTime
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="autoRefresh" default="0">
 
<!-- type="SFTimeNonNegative" -->
 
<xs:simpleType>
   
<xs:restriction base="SFTime">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute ShaderPart/@autoRefreshTimeLimit
type restriction of SFTime
properties
default 3600
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="autoRefreshTimeLimit" default="3600">
 
<!-- type="SFTimeNonNegative" -->
 
<xs:simpleType>
   
<xs:restriction base="SFTime">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute ShaderPart/@url
type MFString
annotation
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
source <xs:attribute name="url" type="MFString">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Networking"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="4"/>
   
</xs:appinfo>
 
</xs:annotation>
</xs:attribute>

attribute ShaderPart/@containerField
type containerFieldChoicesShaderPart
properties
default parts
facets
Kind Value Annotation
enumeration parts
appinfo
parent node is ComposedShader node
enumeration children
appinfo
parent node is LoadSensor (formerly watchList in X3D3)
annotation
documentation
parent ComposedShader node
source <xs:attribute name="containerField" type="containerFieldChoicesShaderPart" default="parts">
 
<xs:annotation>
   
<xs:documentation>parent ComposedShader node</xs:documentation>
 
</xs:annotation>
</xs:attribute>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy