]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
added polygonoffset as a texture property, used on submodels (such as
[xonotic/darkplaces.git] / model_shared.h
index 0773c3d1de431bac76d08a35d467781291c7da0b..58f15c821fb127b4c1e493b9e951c3d2602473c1 100644 (file)
@@ -411,6 +411,10 @@ typedef struct texture_s
        // current material flags (updated each bmodel render)
        int currentmaterialflags;
 
+       // current PolygonOffset values for rendering this material
+       float currentpolygonfactor;
+       float currentpolygonoffset;
+
        // textures to use when rendering this material
        skinframe_t *currentskinframe;
        int numskinframes;
@@ -452,6 +456,8 @@ typedef struct texture_s
        rtexture_t *backgroundglosstexture;
        float specularscale;
        float specularpower;
+       // color tint (colormod * currentalpha) used for rtlighting this material
+       float dlightcolor[3];
 
        // from q3 shaders
        int customblendfunc[2];