light: hack to fix lights exactly on faces
This commit is contained in:
parent
a4276825e9
commit
f315366f43
|
|
@ -1159,6 +1159,9 @@ LightFace_Entity(const entity_t *entity, const lightsample_t *light,
|
|||
}
|
||||
}
|
||||
|
||||
/* HACK: support lights lying exactly on a face by only tracing up to 0.1 units from the light */
|
||||
dist = qmax(0.0f, dist - 0.1f);
|
||||
|
||||
if (!TestLight_embree(surfpoint, ray, dist, modelinfo))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue