From f4479a17d5eefa71e74a908d3791849c4b7e03ee Mon Sep 17 00:00:00 2001 From: RaveYard Date: Tue, 14 Jun 2022 19:51:05 +0200 Subject: [PATCH] Add default auto probe grid size --- src/level/level_light.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/level/level_light.cpp b/src/level/level_light.cpp index bd60d96..f4f3287 100644 --- a/src/level/level_light.cpp +++ b/src/level/level_light.cpp @@ -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)