complexType X3DLightNode
diagram x3d-4.0_diagrams/x3d-4.0_p351.png
type extension of X3DChildNode
properties
base X3DChildNode
abstract true
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
elements DirectionalLight PointLight SpotLight
complexType X3DTextureProjectorNode
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.
               
ambientIntensity  unitIntervalType    0    
color  SFColor    1 1 1    
intensity  derived by: SFFloat    1    
appinfo
No upper limit on X3D4 lights, matching glTF Physically Based Rendering (PBR)
on  SFBool    true    
shadows  SFBool    false    
shadowIntensity  unitIntervalType    1    
annotation
appinfo
<!-- global attribute default value can differ, and so is defined individually for each light node. -->
<!-- <xs:attribute name="global" type="SFBool" fixed="inputOutputField"/> -->
<xs:attribute name="componentName" type="componentNameChoices" fixed="Lighting"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                Light nodes provide illumination for rendering geometry in the scene.
                Implementing nodes must include a global field with type SFBool and accessType inputOutput.
           
source <xs:complexType name="X3DLightNode" abstract="true">
 
<xs:annotation>
   
<xs:appinfo>
     
<!-- global attribute default value can differ, and so is defined individually for each light node. -->
     
<!-- <xs:attribute name="global" type="SFBool" fixed="inputOutputField"/> -->
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Lighting"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="1"/>
                Light nodes provide illumination for rendering geometry in the scene.
                Implementing nodes must include a global field with type SFBool and accessType inputOutput.
           
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-DIS/Part01/components/lighting.html#X3DLightNode"/>
 
</xs:annotation>
 
<xs:complexContent>
   
<xs:extension base="X3DChildNode">
     
<xs:attribute name="ambientIntensity" type="unitIntervalType" default="0"/>
     
<xs:attribute name="color" type="SFColor" default="1 1 1"/>
     
<xs:attribute name="intensity" default="1">
       
<xs:annotation>
         
<xs:appinfo>No upper limit on X3D4 lights, matching glTF Physically Based Rendering (PBR)</xs:appinfo>
       
</xs:annotation>
       
<xs:simpleType>
         
<xs:restriction base="SFFloat">
           
<xs:minInclusive value="0"/>
         
</xs:restriction>
       
</xs:simpleType>
     
</xs:attribute>
     
<xs:attribute name="on" type="SFBool" default="true"/>
     
<xs:attribute name="shadows" type="SFBool" default="false"/>
     
<xs:attribute name="shadowIntensity" type="unitIntervalType" default="1"/>
   
</xs:extension>
 
</xs:complexContent>
</xs:complexType>

attribute X3DLightNode/@ambientIntensity
type unitIntervalType
properties
default 0
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="ambientIntensity" type="unitIntervalType" default="0"/>

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

attribute X3DLightNode/@intensity
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
annotation
appinfo
No upper limit on X3D4 lights, matching glTF Physically Based Rendering (PBR)
source <xs:attribute name="intensity" default="1">
 
<xs:annotation>
   
<xs:appinfo>No upper limit on X3D4 lights, matching glTF Physically Based Rendering (PBR)</xs:appinfo>
 
</xs:annotation>
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

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

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

attribute X3DLightNode/@shadowIntensity
type unitIntervalType
properties
default 1
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="shadowIntensity" type="unitIntervalType" default="1"/>


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