From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Wed, 22 Jan 2020 09:16:48 +0000 (+0000)
Subject: Set RENDER_NOSELFSHADOW on the MESH_UI entity to avoid applying the 3D scene's shadow... 
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7cc2542f96e00ce8a33a7197f97c10b013f79c21;p=xonotic%2Fdarkplaces.git

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
---

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);
 }