trace.c: Undo part of cc36d8e that flipped the signs of ON_EPSILON for one of the checks in the TraceLine.
This fixes cracks in sunlight shadows spotted by Lunaran, and greatly improves the AO quality
This commit is contained in:
parent
11678eaa74
commit
c51326e8b0
|
|
@ -187,11 +187,11 @@ TraceLine(const dmodel_t *model, const int traceflags,
|
|||
break;
|
||||
}
|
||||
|
||||
if (frontdist > ON_EPSILON && backdist > ON_EPSILON) {
|
||||
if (frontdist > -ON_EPSILON && backdist > -ON_EPSILON) {
|
||||
node = tnode->children[0];
|
||||
continue;
|
||||
}
|
||||
if (frontdist < -ON_EPSILON && backdist < -ON_EPSILON) {
|
||||
if (frontdist < ON_EPSILON && backdist < ON_EPSILON) {
|
||||
node = tnode->children[1];
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue