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;

View file

@ -13,7 +13,7 @@ vec3 TraceSunLight(vec3 origin, vec3 normal, int surfaceIndex)
const float minDistance = 0.01;
vec3 incoming = vec3(0.0);
const float dist = 32768.0;
const float dist = 65536.0;
#if defined(USE_SOFTSHADOWS)