forked from PrimeDecomp/PrimeRemasterStructs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CLightProbeData.bt
55 lines (48 loc) · 1.27 KB
/
CLightProbeData.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef _CLIGHTPROBEDATA
#define _CLIGHTPROBEDATA
#include "CChunkDescriptor.bt"
#include "CFormDescriptor.bt"
#include "NTextureFormat.bt"
#include "CVector3f.bt"
#include "CVector3i.bt"
typedef struct {
int16 x;
int16 y;
int16 z;
} CBakedLightingUniformProbeGridIndex;
struct LightProbeBundleHeader {
uint32 unk1;
uint32 unk2;
CVector3f unk3;
CBakedLightingUniformProbeGridIndex unk4;
CBakedLightingUniformProbeGridIndex unk5;
};
struct SLightProbeMetaData(uint64 fileStart) {
uint32 unk1;
uint32 unk2;
uint32 metaOffsetCount;
if (metaOffsetCount > 0) {
uint64 metaOffsets[metaOffsetCount];
}
uint32 txtrOffsetCount;
if (txtrOffsetCount > 0) {
uint64 txtrOffsets[txtrOffsetCount];
}
};
struct LightProbeBundle {
STextureMetaData metaData(FTell() + 0x4D /* start of TXTR */);
CVector3i unkVector;
uint unk;
FormDescriptor textureForm;
NTextureFormat txtrChunk(textureForm.size);
};
typedef struct CLightProbeData(uint64 size) {
local uint64 start <hidden=true> = FTell();
ChunkDescriptor phdr;
LightProbeBundleHeader bundleHeader;
ChunkDescriptor ptext;
while (FTell() < start + size) {
LightProbeBundle bundle;
}
} CLightProbeData;
#endif// _CLIGHTPROBEDATA