Light data is defined as a <FragmentLightCtr>
tag, which is located under the <Lights>
tag. If there are multiple sets of camera data, there are multiple <FragmentLightCtr>
tags below the <Lights>
tag. A <FragmentLightCtr>
tag contains the following light-related information:
There are three light types, as listed below. The light type is specified by the LightKind
attribute of the <FragmentLightCtr>
tag.
When DirectionalLight
is specified for the LightKind
attribute, the light type is a directional light.
When PointLight
is specified for the LightKind
attribute, the light type is a point light.
When SpotLight
is specified for the LightKind
attribute, the light type is a spot light.
This stores information about the light's position, rotation, and scaling.
<NintendoWareIntermediateFile> |
The following four parameters are stored as light color information. These color parameters are used for all light types.
<NintendoWareIntermediateFile> |
<NintendoWareIntermediateFile> |
<NintendoWareIntermediateFile> |
<NintendoWareIntermediateFile> |
The direction that the light is pointing is specified by a vector. This parameter is configured when specifying the direction of a directional light or a spot light.
<NintendoWareIntermediateFile> |
This is the setting for the attenuation inside the spotlight cone. This specifies a table used with the <ReferenceLookupTableCtr>
tag. This table is defined as a lookup table of cosine values of the angle between the light vector and the spot-direction vector.
<NintendoWareIntermediateFile> |
CONFIDENTIAL