From 7cc2542f96e00ce8a33a7197f97c10b013f79c21 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 22 Jan 2020 09:16:48 +0000 Subject: [PATCH] Set RENDER_NOSELFSHADOW on the MESH_UI entity to avoid applying the 3D scene's shadows to the UI. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12503 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cl_main.c b/cl_main.c index ca6731ac..84cd3239 100644 --- 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); } -- 2.39.2