Use larger epsilon for ray traces
This commit is contained in:
parent
74b175648b
commit
d7f6bfa0c3
|
@ -876,7 +876,8 @@ public class LightMapper
|
||||||
origin = hitResult.Position += direction * MathUtils.Epsilon;
|
origin = hitResult.Position += direction * MathUtils.Epsilon;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Math.Abs(hitDistanceFromTarget) < MathUtils.Epsilon;
|
// A large epsilon is used here to fix shadow acne on sloped surfaces :)
|
||||||
|
return Math.Abs(hitDistanceFromTarget) < 10 * MathUtils.Epsilon;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Can this be merged with the above?
|
// TODO: Can this be merged with the above?
|
||||||
|
|
Loading…
Reference in New Issue