diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/spatial.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/spatial.c b/src/spatial.c index b764a03..c79b8e8 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -270,11 +270,19 @@ ssize_t scene_fill(xas_spatial_scene *scene, value_r = sample_scale(src[i], obj->distance_r); if (!within_cone(obj->point, cone_l)) { - value_l /= 3.0f; + if (within_cone(obj->point, cone_r)) { + value_l /= 8.0f; + } else { + value_l /= 3.0f; + } } if (!within_cone(obj->point, cone_r)) { - value_r /= 3.0f; + if (within_cone(obj->point, cone_l)) { + value_r /= 8.0f; + } else { + value_r /= 3.0f; + } } if (buffer->index == buffer->size) { |