mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
* patterns: added a few voxel model patterns * patterns: updated qbcl according to https://gist.github.com/tostc/7f049207a2e5a7ccb714499702b5e2fd * readme: added new voxel format petterns to the readme * tests: added vxl test file * ccvxl: updated two fields
31 lines
487 B
Rust
31 lines
487 B
Rust
// Command and conquer voxel animation format
|
|
|
|
struct vec4_s {
|
|
float x [[color("FF0000")]];
|
|
float y [[color("00FF00")]];
|
|
float z [[color("0000FF")]];
|
|
float w [[color("FFFF00")]];
|
|
};
|
|
|
|
struct mat3x4_s {
|
|
vec4_s row[3];
|
|
};
|
|
|
|
struct name_s {
|
|
char buffer[16] [[color("EECCCC")]];
|
|
};
|
|
|
|
struct hva_s {
|
|
name_s name;
|
|
u32 numFrames;
|
|
u32 numNodes;
|
|
name_s nodeNames[numNodes];
|
|
};
|
|
|
|
struct frame_s {
|
|
mat3x4_s mat[hva.numNodes];
|
|
};
|
|
|
|
hva_s hva @0x00;
|
|
frame_s frames[hva.numFrames] @sizeof(hva);
|