cubemap rtlights should not contribute to entity ambient light
This commit is contained in:
parent
fa0058be72
commit
60f804aa93
1 changed files with 2 additions and 2 deletions
|
@ -1461,7 +1461,7 @@ qboolean R_CalcModelLighting(entity_t *e, model_t *clmodel)
|
|||
//don't do world lights, although that might be funny
|
||||
for (i=rtlights_first; i<RTL_FIRST; i++)
|
||||
{
|
||||
if (cl_dlights[i].radius)
|
||||
if (!(*cl_dlights[i].cubemapname) && cl_dlights[i].radius)
|
||||
{
|
||||
VectorSubtract (org,
|
||||
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
|
||||
for (i=rtlights_first; i<RTL_FIRST; i++)
|
||||
{
|
||||
if (cl_dlights[i].radius)
|
||||
if (!(*cl_dlights[i].cubemapname) && cl_dlights[i].radius)
|
||||
{
|
||||
VectorSubtract (org,
|
||||
cl_dlights[i].origin,
|
||||
|
|
Loading…
Reference in a new issue