9. MatNode

(1) MatNode

> The following data will be added into MatNode.

> | u32 | mat_tag
> u32 | this_mat_index
> u32 | mat_size
> u32 | mat_name_index
> u32 | mat_type
> u32 | mat_shade_type
> u32 | mat_color_type0
> u32 | mat_color_type1
> u32 | mat_alpha_type0
> u32 | mat_alpha_type1
> float | prim_red
> float | prim_green
> float | prim_blue
> float | prim_alpha
> u32 | user_flag0
> u32 | user_flag1
> u32 | user_flag2
> u32 | user_flag3
> u32 | user_flag4
> u32 | user_flag5
> u32 | user_flag6
> u32 | user_flag7
> u32 | local_light_index
> u32 | tex_num
> u32 | nintendo_extension_block_size
> u32 | user_extension_block_size
> u32 | tex_index(0)
> ...
> u32 | tex_index(tex_num - 1)
> NintendoExtensionBlock | float | ambient_red
> float | ambient_green
> float | ambient_blue
> float | ambient_alpha
> float | emission_red
> float | emission_green
> float | emission_blue
> float | emission_alpha
> float | diffuse_red
> float | diffuse_green
> float | diffuse_blue
> float | diffuse_alpha
> u32 | mat_type_for_fog
> u32 | mat_color_type0_for_fog
> u32 | mat_color_type1_for_fog
> u32 | mat_alpha_type0_for_fog
> u32 | mat_alpha_type1_for_fog
> float | prim_red_for_fog
> float | prim_green_for_fog
> float | prim_blue_for_fog
> float | prim_alpha_for_fog
> u32 | external_local_light_file_name_index
> u32 | external_local_light_name_index
> u32 | external_tex_num
> u32 | prim_color_anim_num
> u32 | prim_color_anim_num_for_fog
> u32 | external_tex_file_name_index(0)
> ...
> u32 | external_tex_file_name_index(external_name_num - 1)
> u32 | external_tex_name_index(0)
> ...
> u32 | external_tex_name_index(external_tex_num - 1)
> PrimColorAnim(0)
> ...
> PrimColorAnim(prim_color_anim_num - 1)
> PrimColorAnimForFog(0)
> ...
> PrimColorAnimForFog(prim_color_anim_num_for_fog - 1)
> --- other extension data ---
> | UserExtensionBlock

> Go to the description (Japanese)

> Go to the description (English)

(2) PrimColorAnim, PrimColorAnimForFog

> u32 | interpolation_type
> u32 | key
> float | prim_color_anim_red
> float | prim_color_anim_green
> float | prim_color_anim_blue
> float | prim_color_anim_alpha

> Go to the description (Japanese)

> Go to the description (English)