Material

Element Information

Model

Attributes

Used By

Source

<xs:element name="Material">
  <xs:annotation>
    <xs:appinfo>
      <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Shape"/>
      <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
    </xs:appinfo>
    <xs:documentation source="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shape.html#Material"/>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="X3DMaterialNode">
        <xs:attribute name="ambientIntensity" type="intensityType" default="0.2">
          <xs:annotation>
            <xs:appinfo>
              <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Shape"/>
              <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
            </xs:appinfo>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="diffuseColor" type="SFColor" default="0.8 0.8 0.8"/>
        <xs:attribute name="emissiveColor" type="SFColor" default="0 0 0">
          <xs:annotation>
            <xs:appinfo>
              <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Shape"/>
              <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>A Material with emissiveColour not equal to (0,0,0) and diffuseColor equal to (0,0,0) is an unlit material.</xs:appinfo>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="shininess" type="intensityType" default="0.2">
          <xs:annotation>
            <xs:appinfo>
              <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Shape"/>
              <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
            </xs:appinfo>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="specularColor" type="SFColor" default="0 0 0">
          <xs:annotation>
            <xs:appinfo>
              <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Shape"/>
              <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
            </xs:appinfo>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="transparency" type="intensityType" default="0">
          <xs:annotation>
            <xs:appinfo>
              <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Shape"/>
              <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>One-bit transparency; transparency values >= 0.5 are transparent.</xs:appinfo>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="containerField" type="xs:NMTOKEN" default="material"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample