Cycles: Expose "Max Bounces" for the world light.
authorThomas Dinges <blender@dingto.org>
Sun, 12 Jul 2015 15:56:54 +0000 (17:56 +0200)
committerThomas Dinges <blender@dingto.org>
Sun, 12 Jul 2015 15:56:54 +0000 (17:56 +0200)
commitd54e77b66dcb8aaf2dc567c1fce900b3b13ce465
tree4829d267dcbd859d5fbf304719a556051d2b6832
parent6ffc988ae3aa57822be89e9580146908c938e0a0
Cycles: Expose "Max Bounces" for the world light.

When using MIS, the world is treated as regular light and in this case
we can now also limit the maximum amount of bounces, the background light
will contribute to the scene.

This can improve performance in some cases, where it's e.g. sufficient to
only have a contribution on first 1-2 bounces.
Examples can be found in the differential.

Differential revision: https://developer.blender.org/D1399
intern/cycles/blender/addon/properties.py
intern/cycles/blender/addon/ui.py
intern/cycles/blender/blender_object.cpp