22 lines
870 B
Plaintext
22 lines
870 B
Plaintext
|
|
type sunlightparseparams [display="Sun Light Parse Params"]
|
||
|
|
{
|
||
|
|
// PC version: Fixed 128-byte struct (embedded in GfxWorld header)
|
||
|
|
// Name is a fixed 64-byte char array, NOT a pointer!
|
||
|
|
name = read(64) [ui, readonly, display="Name"];
|
||
|
|
|
||
|
|
// Ambient settings
|
||
|
|
ambient_scale = read(4) [ui, readonly, display="Ambient Scale"];
|
||
|
|
ambient_color = read(12) [ui, readonly, display="Ambient Color"];
|
||
|
|
|
||
|
|
// Diffuse/Sun settings
|
||
|
|
diffuse_fraction = read(4) [ui, readonly, display="Diffuse Fraction"];
|
||
|
|
sun_light = read(4) [ui, readonly, display="Sun Light"];
|
||
|
|
sun_color = read(12) [ui, readonly, display="Sun Color"];
|
||
|
|
diffuse_color = read(12) [ui, readonly, display="Diffuse Color"];
|
||
|
|
|
||
|
|
// Flags and angles
|
||
|
|
u8 diffuse_color_has_been_set [ui, readonly, display="Diffuse Color Has Been Set"];
|
||
|
|
skip(3); // padding
|
||
|
|
angles = read(12) [ui, readonly, display="Angles"];
|
||
|
|
}
|