sources

sid of the code or include element which provides the source for this shader.  Code may come from local or library_code.

Element Information

Model

Children: import, inline

Attributes

QName Type Fixed Default Use Inheritable Annotation
entry xs:token main optional
Not used by GLSL.  Some languages require functional entry points.  GLSL always uses "main".  CG requires an entry point

Source

<xs:element name="sources">
  <xs:annotation>
    <xs:documentation>sid of the code or include element which provides the source for this shader. Code may come from local or library_code.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="fx_sources_type">
        <xs:attribute name="entry" type="xs:token" default="main">
          <xs:annotation>
            <xs:documentation>Not used by GLSL. Some languages require functional entry points. GLSL always uses "main". CG requires an entry point</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample

< shader xmlns = "http://www.collada.org/2008/03/COLLADASchema" stage = "VERTEX" >

< sources>

< import ref = "Vertex_Program_E0_P0_VP" />

</ sources>

</ shader>