mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
get the spotlight working
This commit is contained in:
parent
16a90e17f2
commit
1d40013e5e
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ MatchTargets (void)
|
|||
SetKeyValue (&entities[i], "style", s);
|
||||
}
|
||||
|
||||
if (entities[i].spotcone <= 0) {
|
||||
if (entities[i].spotcone >= 0) {
|
||||
VectorZero (entities[i].spotdir);
|
||||
entities[i].spotcone = 0;
|
||||
}
|
||||
|
|
|
@ -333,7 +333,7 @@ SingleLightFace (entity_t *light, lightinfo_t *l)
|
|||
continue;
|
||||
|
||||
// spotlight cutoff
|
||||
if (spotcone > 0 && DotProduct (spotvec, incoming) > spotcone)
|
||||
if (spotcone && DotProduct (spotvec, incoming) > spotcone)
|
||||
continue;
|
||||
|
||||
angle = DotProduct (incoming, l->facenormal);
|
||||
|
|
Loading…
Reference in a new issue