]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
colormod values above 1 1 1 should work properly with r_glsl now
[xonotic/darkplaces.git] / model_shared.h
index 9ec9bf16e545ab6f55af169b358b4aa83965546e..bc030221b27d37f082a9d0a16a2c12b34022812a 100644 (file)
@@ -477,6 +477,10 @@ typedef struct texture_s
        float specularpower;
        // color tint (colormod * currentalpha) used for rtlighting this material
        float dlightcolor[3];
+       // color tint (colormod * 2) used for lightmapped lighting on this material
+       // includes alpha as 4th component
+       // replaces role of gl_Color in GLSL shader
+       float lightmapcolor[4];
 
        // from q3 shaders
        int customblendfunc[2];