XPlor/definitions/cod/materialargumentdef.xscript

11 lines
389 B
Plaintext
Raw Normal View History

2026-01-01 22:18:40 -05:00
type materialargumentdef [display="Material Argument Def"]
{
// MaterialArgumentDef is a 4-byte union on PC:
// - float* literalConst (pointer)
// - MaterialArgumentCodeConst codeConst (u16 index + u16 firstRow)
// - u32 codeSampler
// - u32 nameHash
// We just read it as raw bytes since interpretation depends on arg type
value = read(4) [ui, readonly, display="Value"];
2026-01-01 22:18:40 -05:00
}