]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_sprites.c
fix a warning
[xonotic/darkplaces.git] / r_sprites.c
index fbcd8b36d4b4b504ea6422090c49c1973b2444b6..02348b373c73b308e78365f50f41254f07c18941 100644 (file)
@@ -386,7 +386,7 @@ void R_Model_Sprite_Draw_TransparentCallback(const entity_render_t *ent, const r
 
                        // lit sprite by lightgrid if it is not fullbright, lit only ambient
                        if (!(texture->currentmaterialflags & MATERIALFLAG_FULLBRIGHT))
-                               VectorAdd(ent->modellight_ambient, ent->modellight_diffuse, rsurface.modellight_ambient);
+                               VectorAdd(ent->modellight_ambient, ent->modellight_diffuse, rsurface.modellight_ambient); // sprites dont use lightdirection
 
                        // SPR_LABEL should not use depth test AT ALL
                        if(model->sprite.sprnum_type == SPR_LABEL || model->sprite.sprnum_type == SPR_LABEL_SCALE)