]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
reworked rtlighting code to handle transparent water lighting and transparent model...
[xonotic/darkplaces.git] / client.h
index c52361e2a58721002f4c0f262cf67930aaffc4cf..1f815d72dec306b2fb1d7846ae60495456a9d566 100644 (file)
--- a/client.h
+++ b/client.h
@@ -117,6 +117,12 @@ typedef struct rtlight_s
        // squared cullradius
        //vec_t cullradius2;
 
+       // rendering properties, updated each time a light is rendered
+       // this is rtlight->color * d_lightstylevalue
+       vec3_t currentcolor;
+       // this is R_Shadow_Cubemap(rtlight->cubemapname)
+       rtexture_t *currentcubemap;
+
        // lightmap renderer stuff (remove someday!)
        // the size of the light
        vec_t lightmap_cullradius;