]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Set RENDER_NOSELFSHADOW on the MESH_UI entity to avoid applying the 3D scene's shadow...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 09:16:48 +0000 (09:16 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 09:16:48 +0000 (09:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12503 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index ca6731aced0a95264487b884f0d79421f63d008a..84cd32397595397571e97a5b2e935d8eb77dcfbe 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -2423,6 +2423,7 @@ static void CL_MeshEntities_Init(void)
                Matrix4x4_CreateIdentity(&ent->render.matrix);
                CL_UpdateRenderEntity(&ent->render);
        }
+       cl_meshentities[MESH_UI].render.flags = RENDER_NOSELFSHADOW;
        R_RegisterModule("cl_meshentities", CL_MeshEntities_Restart, CL_MeshEntities_Restart, CL_MeshEntities_Restart, CL_MeshEntities_Restart, CL_MeshEntities_Restart);
 }