- Volition VPP: Unified BE/LE types using inheritance pattern - THQA PAK: Child types now inherit byte order from parent - Various XScript definition updates and fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
33 lines
705 B
Plaintext
33 lines
705 B
Plaintext
type gfxlight ui("GFX Light")
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
u8 light_type ui("Type");
|
|
u8 can_use_shadow_map ui("Can Use Shadow Map");
|
|
|
|
skip 2; // padding
|
|
|
|
// Color (3 floats)
|
|
color = read(12) ui("Color RGB");
|
|
|
|
// Direction (3 floats)
|
|
dir = read(12) ui("Direction");
|
|
|
|
// Origin (3 floats)
|
|
origin = read(12) ui("Origin");
|
|
|
|
// Other params
|
|
radius = read(4) ui("Radius");
|
|
cos_half_fov_outer = read(4) ui("Cos Half FOV Outer");
|
|
cos_half_fov_inner = read(4) ui("Cos Half FOV Inner");
|
|
|
|
i32 exponent ui("Exponent");
|
|
u32 spot_shadow_index ui("Spot Shadow Index");
|
|
i32 def_ptr ui("Def Ptr");
|
|
|
|
// Inline data
|
|
if (def_ptr == PTR_INLINE) {
|
|
def = parse_here("gfxlightdef");
|
|
}
|
|
}
|