- Migrate from set_global/get_global to ctx_set/ctx_get - Replace if-else chains with match() expressions - Update inline pointer handling patterns - Improve GfxWorld and asset parsing structures - Clean up redundant code across 60+ definition files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
876 B
Plaintext
47 lines
876 B
Plaintext
type gfxlight [display="GFX Light"]
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
u8 light_type;
|
|
ui("light_type", "Type");
|
|
|
|
u8 can_use_shadow_map;
|
|
ui("can_use_shadow_map", "Can Use Shadow Map");
|
|
|
|
skip 2; // padding
|
|
|
|
// Color (3 floats)
|
|
color = read(12);
|
|
ui("color", "Color RGB");
|
|
|
|
// Direction (3 floats)
|
|
dir = read(12);
|
|
ui("dir", "Direction");
|
|
|
|
// Origin (3 floats)
|
|
origin = read(12);
|
|
ui("origin", "Origin");
|
|
|
|
// Other params
|
|
radius = read(4);
|
|
ui("radius", "Radius");
|
|
|
|
cos_half_fov_outer = read(4);
|
|
ui("cos_half_fov_outer", "Cos Half FOV Outer");
|
|
|
|
cos_half_fov_inner = read(4);
|
|
ui("cos_half_fov_inner", "Cos Half FOV Inner");
|
|
|
|
i32 exponent;
|
|
ui("exponent", "Exponent");
|
|
|
|
u32 spot_shadow_index;
|
|
ui("spot_shadow_index", "Spot Shadow Index");
|
|
|
|
i32 def_ptr;
|
|
ui("def_ptr", "Def Ptr");
|
|
|
|
// Inline data
|
|
inline gfxlightdef def when def_ptr;
|
|
}
|