element EnvironmentLight
diagram x3d-4.0_diagrams/x3d-4.0_p73.png
type extension of X3DLightNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString ImageTexture MovieTexture PixelTexture ComposedCubeMapTexture GeneratedCubeMapTexture ImageCubeMapTexture ProtoInstance
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.
               
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.
               
ambientIntensity  intensityType    0    
color  SFColor    1 1 1    
intensity  intensityType    1    
on  SFBool    true    
shadows  SFBool    false    
shadowIntensity  intensityType    1    
diffuseCoefficients  MFFloat        
documentation
Provides optional 3 x 9 array of float values
global  SFBool    false    
rotation  SFRotation    0 0 1 0    
containerField  xs:NMTOKEN    children    
annotation
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Lighting"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
<xs:element name="diffuse" type="SFNode" fixed="inputOutputField" default="X3DSingleTextureNode">
<xs:annotation>
<xs:appinfo>.DDS format</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="diffuseTexture" type="SFNode" fixed="inputOutputField" default="X3DEnvironmentTextureNode"/>
<xs:element name="specularTexture" type="SFNode" fixed="inputOutputField" default="X3DEnvironmentTextureNode"/>
                TODO add contained nodes.
           
source <xs:element name="EnvironmentLight">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Lighting"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
     
<xs:element name="diffuse" type="SFNode" fixed="inputOutputField" default="X3DSingleTextureNode">
       
<xs:annotation>
         
<xs:appinfo>.DDS format</xs:appinfo>
       
</xs:annotation>
     
</xs:element>
     
<xs:element name="diffuseTexture" type="SFNode" fixed="inputOutputField" default="X3DEnvironmentTextureNode"/>
     
<xs:element name="specularTexture" type="SFNode" fixed="inputOutputField" default="X3DEnvironmentTextureNode"/>
                TODO add contained nodes.
           
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-WD3/Part01/components/lighting.html#DirectionalLight"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DLightNode">
       
<xs:sequence>
         
<xs:choice minOccurs="0" maxOccurs="1">
           
<xs:annotation>
             
<xs:documentation>diffuse</xs:documentation>
           
</xs:annotation>
           
<!-- strictly one for this field -->
           
<xs:element ref="ImageTexture"/>
           
<xs:element ref="MovieTexture"/>
           
<xs:element ref="PixelTexture"/>
           
<!-- inclusion of ProtoInstance here leads to ambiguous content model -->
         
</xs:choice>
         
<xs:choice minOccurs="0" maxOccurs="2">
           
<xs:annotation>
             
<xs:documentation>diffuseTexture, specularTexture</xs:documentation>
           
</xs:annotation>
           
<!-- strictly one of each field, any order -->
           
<xs:element ref="ComposedCubeMapTexture"/>
           
<xs:element ref="GeneratedCubeMapTexture"/>
           
<xs:element ref="ImageCubeMapTexture"/>
           
<xs:element ref="ProtoInstance">
             
<xs:annotation>
               
<xs:documentation>Appropriately typed substitution node</xs:documentation>
             
</xs:annotation>
           
</xs:element>
         
</xs:choice>
       
</xs:sequence>
       
<xs:attribute name="diffuseCoefficients" type="MFFloat">
         
<xs:annotation>
           
<xs:documentation>Provides optional 3 x 9 array of float values</xs:documentation>
         
</xs:annotation>
       
</xs:attribute>
       
<xs:attribute name="global" type="SFBool" default="false"/>
       
<xs:attribute name="rotation" type="SFRotation" default="0 0 1 0"/>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute EnvironmentLight/@diffuseCoefficients
type MFFloat
facets
Kind Value Annotation
whiteSpace collapse
pattern (\s)*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*,?\s*)*
annotation
documentation
Provides optional 3 x 9 array of float values
source <xs:attribute name="diffuseCoefficients" type="MFFloat">
 
<xs:annotation>
   
<xs:documentation>Provides optional 3 x 9 array of float values</xs:documentation>
 
</xs:annotation>
</xs:attribute>

attribute EnvironmentLight/@global
type SFBool
properties
default false
source <xs:attribute name="global" type="SFBool" default="false"/>

attribute EnvironmentLight/@rotation
type SFRotation
properties
default 0 0 1 0
facets
Kind Value Annotation
whiteSpace collapse
pattern \s*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s+){3}([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="rotation" type="SFRotation" default="0 0 1 0"/>

attribute EnvironmentLight/@containerField
type xs:NMTOKEN
properties
default children
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>


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