Increase and unify max distance for sunlight rays

This commit is contained in:
RaveYard 2024-01-01 08:39:24 +01:00 committed by Magnus Norddahl
commit 9534e7b76e
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public:
}
else
{
bool traceResult = level.levelMesh->TraceSky(FVector3(x, y, z), level.SunDirection, 10000.0f);
bool traceResult = level.levelMesh->TraceSky(FVector3(x, y, z), level.SunDirection, 65536.0f);
Actor->StaticLightsTraceCache.Bits |= ((uint64_t)traceResult) << CurrentBit;
CurrentBit++;
return traceResult;