1
0
Fork 0
forked from fte/fteqw

cubemap rtlights should not contribute to entity ambient light

This commit is contained in:
Marco Cawthorne 2024-11-21 22:08:45 -08:00
parent fa0058be72
commit 60f804aa93

View file

@ -1461,7 +1461,7 @@ qboolean R_CalcModelLighting(entity_t *e, model_t *clmodel)
//don't do world lights, although that might be funny //don't do world lights, although that might be funny
for (i=rtlights_first; i<RTL_FIRST; i++) for (i=rtlights_first; i<RTL_FIRST; i++)
{ {
if (cl_dlights[i].radius) if (!(*cl_dlights[i].cubemapname) && cl_dlights[i].radius)
{ {
VectorSubtract (org, VectorSubtract (org,
cl_dlights[i].origin, cl_dlights[i].origin,
@ -1509,7 +1509,7 @@ qboolean R_CalcModelLighting(entity_t *e, model_t *clmodel)
//don't do world lights, although that might be funny //don't do world lights, although that might be funny
for (i=rtlights_first; i<RTL_FIRST; i++) for (i=rtlights_first; i<RTL_FIRST; i++)
{ {
if (cl_dlights[i].radius) if (!(*cl_dlights[i].cubemapname) && cl_dlights[i].radius)
{ {
VectorSubtract (org, VectorSubtract (org,
cl_dlights[i].origin, cl_dlights[i].origin,