complexType X3DLightNode
diagram x3d-3.0_diagrams/x3d-3.0_p198.png
type extension of X3DChildNode
properties
base X3DChildNode
abstract true
children IS MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
used by
elements DirectionalLight PointLight SpotLight
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.
ambientIntensity  unitIntervalType    0    
color  SFColor    1 1 1    
intensity  unitIntervalType    1    
on  SFBool    true    
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/documents/specifications/19775-1/V3.3/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" type="unitIntervalType" default="1"/>
     
<xs:attribute name="on" type="SFBool" default="true"/>
   
</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 unitIntervalType
properties
default 1
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
source <xs:attribute name="intensity" type="unitIntervalType" default="1"/>

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


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