Increase and unify max distance for sunlight rays
This commit is contained in:
parent
a4fae58685
commit
9534e7b76e
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue