projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
needs a lot of cleaning but lights are OK
[carveJwlIkooP6JGAAIwe30JlM.git]
/
model.h
diff --git
a/model.h
b/model.h
index 287eefd6e203692233ac71aaf973e632f7b8208f..b2d258deb282916dfead2dd647893259e39b87ec 100644
(file)
--- a/
model.h
+++ b/
model.h
@@
-41,7
+41,9
@@
enum classtype
k_classtype_audio = 14,
k_classtype_trigger = 100,
k_classtype_logic_achievement = 101,
k_classtype_audio = 14,
k_classtype_trigger = 100,
k_classtype_logic_achievement = 101,
- k_classtype_logic_relay = 102
+ k_classtype_logic_relay = 102,
+ k_classtype_world_light = 200,
+ k_classtype_nonlocal_gate = 300
};
enum mdl_shader
};
enum mdl_shader
@@
-90,14
+92,16
@@
enum bone_flag
#pragma pack(push,1)
#pragma pack(push,1)
+/* 48 byte */
struct mdl_vert
{
struct mdl_vert
{
- v3f co,
- norm;
- v2f uv;
- u8 colour[4];
- u16 weights[4];
- u8 groups[4];
+ v3f co, /* 3*32 */
+ norm; /* 3*32 */
+ v2f uv; /* 2*32 */
+
+ u8 colour[4]; /* 4*8 */
+ u16 weights[4];/* 4*16 */
+ u8 groups[4]; /* 4*8 */
};
struct mdl_submesh
};
struct mdl_submesh
@@
-267,6
+271,19
@@
struct classtype_audio
float volume;
};
float volume;
};
+struct classtype_world_light
+{
+ enum light_type
+ {
+ k_light_type_point,
+ k_light_type_spot
+ }
+ type;
+
+ v4f colour; /* RGB, Energy */
+ float angle;
+};
+
#pragma pack(pop)
#pragma pack(pop)