Skip to content

Commit

Permalink
Increase and unify max distance for sunlight rays
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaveYard committed Jan 1, 2024
1 parent a4fae58 commit 91e8507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/scene/hw_spritelight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ActorTraceStaticLight
}
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;
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/shaders/lightmap/trace_sunlight.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 91e8507

Please sign in to comment.