]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_light.h
moved light matrix generation out of the render code and into the light creation...
[xonotic/darkplaces.git] / r_light.h
index 379c1b8e2ddf873c2f7c6f98b7e54fb99dfd6d35..a3c7066e26fbe81c9177f3b8d948109f2fc57ca8 100644 (file)
--- a/r_light.h
+++ b/r_light.h
@@ -10,6 +10,17 @@ typedef struct
        vec_t cullradius; // only for culling comparisons
        vec_t subtract; // to avoid sudden brightness change at cullradius, subtract this
        entity_render_t *ent; // owner of this light
+
+       matrix4x4_t matrix_lighttoworld;
+       matrix4x4_t matrix_worldtolight;
+       matrix4x4_t matrix_worldtoattenuationxyz;
+       matrix4x4_t matrix_worldtoattenuationz;
+
+       vec3_t color;
+       vec_t radius;
+       int cubemapnum;
+       int shadow;
+       vec_t corona;
 }
 rdlight_t;