| diagram | ![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type | extension of X3DChildNode | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| properties |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| children | IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| used by |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| attributes |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| annotation |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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/X3Dv4/ISO-IEC19775-1v4-IS/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> |
| type | unitIntervalType | ||||||||||||
| properties |
|
||||||||||||
| facets |
|
||||||||||||
| source | <xs:attribute name="ambientIntensity" type="unitIntervalType" default="0"/> |
| type | SFColor | |||||||||
| properties |
|
|||||||||
| facets |
|
|||||||||
| source | <xs:attribute name="color" type="SFColor" default="1 1 1"/> |
| type | restriction of SFFloat | |||||||||
| properties |
|
|||||||||
| facets |
|
|||||||||
| annotation |
|
|||||||||
| 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> |
| type | SFBool | ||
| properties |
|
||
| source | <xs:attribute name="on" type="SFBool" default="true"/> |
| type | SFBool | ||
| properties |
|
||
| source | <xs:attribute name="shadows" type="SFBool" default="false"/> |
| type | unitIntervalType | ||||||||||||
| properties |
|
||||||||||||
| facets |
|
||||||||||||
| source | <xs:attribute name="shadowIntensity" type="unitIntervalType" default="1"/> |