Skip to content

Commit

Permalink
[rend2] Fallback to surface normal for lighting vectors when lightgri…
Browse files Browse the repository at this point in the history
…d is broken
  • Loading branch information
SomaZ committed Oct 13, 2023
1 parent 3897611 commit da609ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/rd-rend2/tr_light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ int R_LightDirForPoint( vec3_t point, vec3_t lightDir, vec3_t normal, world_t *w
trRefEntity_t ent;

if ( world->lightGridData == NULL )
return qfalse;
{
VectorCopy(normal, lightDir);
return qfalse;
}

Com_Memset(&ent, 0, sizeof(ent));
VectorCopy( point, ent.e.origin );
Expand Down

0 comments on commit da609ac

Please sign in to comment.