diff --git a/light/ltface.cc b/light/ltface.cc index 14d16f7a..71b54c2e 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -1939,23 +1939,17 @@ LightPoint_SurfaceLight(const mbsp_t *bsp, raystream_occlusion_t &rs, const std: qvec3f indirect{}; - if (vpl.omnidirectional) { - // HACK: receive light omnidirectionally - indirect = GetSurfaceLighting(cfg, &vpl, dir, dist, {0, 0, 0}, false, standard_scale, sky_scale, hotspot_clamp); - } else { - for (int axis = 0; axis < 3; ++axis) { - for (int sign = -1; sign <= +1; sign += 2) { + for (int axis = 0; axis < 3; ++axis) { + for (int sign = -1; sign <= +1; sign += 2) { - qvec3f cube_color; + qvec3f cube_color; - qvec3f cube_normal{}; - cube_normal[axis] = sign; + qvec3f cube_normal{}; + cube_normal[axis] = sign; - cube_color = GetSurfaceLighting( - cfg, &vpl, dir, dist, cube_normal, true, standard_scale, sky_scale, hotspot_clamp); + cube_color = GetSurfaceLighting(cfg, &vpl, dir, dist, cube_normal, true, standard_scale, sky_scale, hotspot_clamp); - indirect += cube_color / 6.0; - } + indirect += cube_color / 6.0; } }