]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
fixed some dynamic lighting bugs related to glowing self
[xonotic/darkplaces.git] / model_shared.h
index 0523fb3bb504c564440c76c72b8098b1ce68912d..776b1af54cc0a8a34408aa59995ec1bb84d6d293 100644 (file)
@@ -53,6 +53,8 @@ typedef struct skinframe_s
        rtexture_t *glow; // glow only
        rtexture_t *merged; // original texture minus glow
        rtexture_t *fog; // white texture with alpha of the base texture, NULL if not transparent
+       rtexture_t *nmap; // normalmap (bumpmap for dot3)
+       rtexture_t *gloss; // glossmap (for dot3)
 }
 skinframe_t;
 
@@ -243,10 +245,8 @@ typedef struct model_s
        void(*DrawFakeShadow)(struct entity_render_s *ent);
 
        // functions used only in shadow volume rendering mode
-       // draw the base lighting for the model (glowing areas, etc)
-       void(*DrawBaseLighting)(struct entity_render_s *ent);
        // draw a shadow volume for the model based on light source
-       void(*DrawShadowVolume)(struct entity_render_s *ent, vec3_t relativelightorigin, float lightradius, int visiblevolume);
+       void(*DrawShadowVolume)(struct entity_render_s *ent, vec3_t relativelightorigin, float lightradius);
        // draw the lighting on a model (through stencil)
        void(*DrawLight)(struct entity_render_s *ent, vec3_t relativelightorigin, vec3_t relativeeyeorigin, float lightradius, float lightdistbias, float lightsubtract, float *lightcolor);