diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-06 18:18:34 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-06 18:24:15 +0400 |
commit | a41648c1dc58fcfdb149bf6839ae237d1dadc704 (patch) | |
tree | 25fed9ed0a9d5e3f2dcfe60074e7ae3be19914ba /intern/cycles/blender/blender_session.cpp | |
parent | 5cbddd4ca47b4b2b45ae7284129db5b83d1a948c (diff) |
Cycles: add pass alpha threshold value to render layers.
Z, Index, normal, UV and vector passes are only affected by surfaces with alpha
transparency equal to or higher than this threshold. With value 0.0 the first
surface hit will always write to these passes, regardless of transparency. With
higher values surfaces that are mostly transparent can be skipped until an opaque
surface is encountered.
Diffstat (limited to 'intern/cycles/blender/blender_session.cpp')
-rw-r--r-- | intern/cycles/blender/blender_session.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_session.cpp b/intern/cycles/blender/blender_session.cpp index f81de7d529a..94d390cc330 100644 --- a/intern/cycles/blender/blender_session.cpp +++ b/intern/cycles/blender/blender_session.cpp @@ -382,6 +382,7 @@ void BlenderSession::render() end_render_result(b_engine, b_rr, true, false); buffer_params.passes = passes; + scene->film->pass_alpha_threshold = b_iter->pass_alpha_threshold(); scene->film->tag_passes_update(scene, passes); scene->film->tag_update(scene); scene->integrator->tag_update(scene); |