mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-22 12:01:09 +00:00
Add default auto probe grid size
This commit is contained in:
parent
a0935ba604
commit
f4479a17d5
1 changed files with 2 additions and 2 deletions
|
@ -138,8 +138,8 @@ void FLevel::SetupLights()
|
|||
if (LightBounce > 8) LightBounce = 8;
|
||||
|
||||
// auto probe grid size
|
||||
GridSize = thing->args[3];
|
||||
if (GridSize < 0.f) GridSize = 0.f;
|
||||
GridSize = thing->args[3] ? thing->args[3] : 64.0f;
|
||||
if (GridSize < 1.f) GridSize = 1.f;
|
||||
if (GridSize > 1024.f) GridSize = 1024.f;
|
||||
|
||||
if (dot(sundir, sundir) > 0.01f)
|
||||
|
|
Loading…
Reference in a new issue