3. DirLight Area
The DirLight area describes data related to one type of directional light. The DirLight area is mapped as follows.
u32 | dir_light_tag |
u32 | this_dir_light_index |
u32 | dir_light_size |
float | dir_color_r |
float | dir_color_g |
float | dir_color_b |
float | dir_x |
float | dir_y |
float | dir_z |
Figure: DirLight Area Memory Map
When LIGHT_TYPE_DIRECTION is specified
u32 | dir_light_tag |
u32 | this_dir_light_index |
u32 | dir_light_size |
float | dir_color_r |
float | dir_color_g |
float | dir_color_b |
float | pos_x |
float | pos_y |
float | pos_z |
float | dir_a1 |
float | dir_a2 |
Figure: DirLight Area Memory Map
When LIGHT_TYPE_POSITION is specified
u32 dir_light_tag |
Tag indicating DirLight. Set the following, depending on the type of light specified.
TAG_DIR_LIGHT_DIRECTION 0x000f0101 TAG_DIR_LIGHT_POSITION 0x000f0102 |
u32 this_dir_light_index | Index number of this DirLight |
u32 dir_light_size | Size of this DirLight |
float dir_color_r | Red component of directional light color |
float dir_color_g | Green component of directional light color |
float dir_color_b | Blue component of directional light color |
float dir_x | X component of Diffuse light |
float dir_y | Y component of Diffuse light |
float dir_z | Z component of Diffuse light |
float pos_x | X coordinate (absolute coordinate) of Positional light |
float pos_y | Y coordinate (absolute coordinate) of Positional light |
float pos_z | Z coordinate (absolute coordinate) of Positional light |
float dir_a1 | Decrement of Positional light 1 |
float dir_a2 | Decrement of Positional light 2 |