Light data are defined in <FragmentLightCtr> below <Lights>. Where there are multiple sets of light data, there are multiple <FragmentLightCtr> tags below the <Lights> tag. <FragmentLightCtr> 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 four following parameters are stored as the light color information. These color parameters are used for all the types of lights.
<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 formed from the light vector and the spot-direction vector.
<NintendoWareIntermediateFile> |
CONFIDENTIAL