Tag representing fragment lights. Includes in the child hierarchy <Diffuse>
, <Specular0>
, <Specular1>
, <Direction>
, and <AngleSampler>
tags, which represent the color information and attenuation.
The light type is specified by the LightKind attribute. There are three valid types: DirectionalLight, PointLight and SpotLight.
Type | Attributes | Description |
DistanceAttenuationEnd | Distance to where attenuation of light brightness ends. | |
---|---|---|
DistanceAttenuationStart | Distance to where attenuation of light brightness starts. | |
IsBranchVisible | Flag that indicates whether items below the node are shown. | |
IsDistanceAttenuationEnabled | Flag enabling distance attenuation. | |
IsInheritingDirectionRotate | Flag enabling the inheriting of parent node's rotation. | |
IsTwoSideDiffuse | Flag enabling two-sided lighting for diffuse color. | |
LightKindCtr | LightKind | The type of the light source. |
Name | Name. |
LightKindCtr
Enumerated TypeValue | Description |
DirectionalLight | A parallel light source. |
---|---|
PointLight | A point light source. |
SpotLight | A spot light source. |
<FragmentLightCtr Name="directionalLight1" IsBranchVisible="true" LightKind="DirectionalLight" IsTwoSideDiffuse="false" IsDistanceAttenuationEnabled="false" DistanceAttenuationStart="0" DistanceAttenuationEnd="1" IsInheritingDirectionRotate="false"> |
CONFIDENTIAL