]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
r_fullbright 1 now works properly with r_shadow_realtime_world 1 (why anyone would...
[xonotic/darkplaces.git] / cl_main.c
index 88151231be0e70853d265a5d6b69e7ef58b8cc1b..307851cada0756de918c4cd199616808132a9ef2 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -889,6 +889,9 @@ void CL_RelinkWorld(void)
        Matrix4x4_CreateIdentity(&ent->render.matrix);
        Matrix4x4_CreateIdentity(&ent->render.inversematrix);
        CL_BoundingBoxForEntity(&ent->render);
+       ent->render.flags = RENDER_SHADOW;
+       if (!r_fullbright.integer)
+               ent->render.flags |= RENDER_LIGHT;
 }
 
 static void CL_RelinkStaticEntities(void)