diff options
author | Thomas Dinges <blender@dingto.org> | 2014-11-06 00:48:45 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-11-06 00:49:09 +0300 |
commit | fb820c063831a36b9780a8948219e0eb9ff27da2 (patch) | |
tree | 44d49b8a35445ceecf8ed29127ef1aaa3289ccc0 /intern/cycles/blender/blender_object.cpp | |
parent | 53297e62eb603e61a0033ad2a7d571a258202087 (diff) |
Cycles: Add "Max Bounce" control for lamps
With this setting, we can limit the influence of a lamp to a certain amount of bounces.
0 = Only direct light contribution
1 = 1 light bounce
...
Differential revision: https://developer.blender.org/D860
You can find an example render in the release logs: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.73/Cycles
Diffstat (limited to 'intern/cycles/blender/blender_object.cpp')
-rw-r--r-- | intern/cycles/blender/blender_object.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_object.cpp b/intern/cycles/blender/blender_object.cpp index 1e07c5f9c96..3a32a09d29f 100644 --- a/intern/cycles/blender/blender_object.cpp +++ b/intern/cycles/blender/blender_object.cpp @@ -168,6 +168,8 @@ void BlenderSync::sync_light(BL::Object b_parent, int persistent_id[OBJECT_PERSI else light->samples = samples; + light->max_bounces = get_int(clamp, "max_bounces"); + /* visibility */ uint visibility = object_ray_visibility(b_ob); light->use_diffuse = (visibility & PATH_RAY_DIFFUSE) != 0; |