Commit 0e68cfa9 authored by havoc's avatar havoc Committed by Rudolf Polzer

Configure all of the CL_MeshEntities* meshes the same, the material flags...

Configure all of the CL_MeshEntities* meshes the same, the material flags decide whether each thing should cast a shadow.

git-svn-id: svn://svn.icculus.org/twilight/trunk/[email protected] d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=eb155f17
parent 488b7ca9
......@@ -2406,7 +2406,7 @@ void CL_MeshEntities_Init(void)
ent->state_current.active = true;
ent->render.model = cl_meshentitymodels + i;
ent->render.alpha = 1;
ent->render.flags = RENDER_LIGHT;
ent->render.flags = RENDER_SHADOW | RENDER_LIGHT;
ent->render.framegroupblend[0].lerp = 1;
ent->render.frameblend[0].lerp = 1;
VectorSet(ent->render.colormod, 1, 1, 1);
......@@ -2417,7 +2417,6 @@ void CL_MeshEntities_Init(void)
Matrix4x4_CreateIdentity(&ent->render.matrix);
CL_UpdateRenderEntity(&ent->render);
}
cl_meshentities[MESH_CSQCPOLYGONS].render.flags = RENDER_SHADOW | RENDER_LIGHT;
R_RegisterModule("cl_meshentities", CL_MeshEntities_Restart, CL_MeshEntities_Restart, CL_MeshEntities_Restart, CL_MeshEntities_Restart, CL_MeshEntities_Restart);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment