So I have a modded 32x32 substation that also has a builtin lamp. The light radius is set to span the entire length of the connection distance.
When the light source is at a certain distance from the camera border, the light doesn't get rendered.
Is there a way to fix this? When running around the lights get in and out of the rendering distance causing a fast light-dark switch all the time that's really distracting.
Maybe some config parameter to select the distance?
Or maybe it's moddable?
Question on lamp light rendering distance
Re: Question on lamp light rendering distance
It can be modded, see light_renderer_search_distance_limit and viewtopic.php?p=459849#p459849.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Question on lamp light rendering distance
Thanks Bilka, exactly what I was looking for (I tried searching for "light" and "rendering" but nothing came up).
In my case cranking `light_renderer_search_distance_limit` to 128 resulted in a noticable improvement, but I also had to change `entity_renderer_search_box_limits` and now it's almost unnoticable. I could also dial down `light_renderer_search_distance_limit` to 48.
Mod code in case anyone is intereseted in the future.
In my case cranking `light_renderer_search_distance_limit` to 128 resulted in a noticable improvement, but I also had to change `entity_renderer_search_box_limits` and now it's almost unnoticable. I could also dial down `light_renderer_search_distance_limit` to 48.
Mod code in case anyone is intereseted in the future.
Code: Select all
-- data.lua
-- Increase the distance up to which lights get rendered.
-- Required for mods like inbuilt-lighting when the light radius relative to power pole coverage is high.
-- Default: 22 (__core__/prototypes/utility-constants.lua:394)
data.raw["utility-constants"]["default"].light_renderer_search_distance_limit = 48
-- Also improves light distance rendering.
-- Default: 6, 3, 3, 4 (__core__/prototypes/utility-constants.lua:394)
data.raw["utility-constants"]["default"].entity_renderer_search_box_limits = {
left = 15,
top = 15,
right = 15,
bottom = 15,
}