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 /source/blender/makesrna/intern/rna_scene.c | |
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 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index e901737c670..a3b8c9ff859 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2271,6 +2271,12 @@ void rna_def_render_layer_common(StructRNA *srna, int scene) RNA_def_property_ui_text(prop, "Samples", "Override number of render samples for this render layer, " "0 will use the scene setting"); RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); + + prop = RNA_def_property(srna, "pass_alpha_threshold", PROP_FLOAT, PROP_FACTOR); + RNA_def_property_ui_text(prop, "Alpha Treshold", "Z, Index, normal, UV and vector passes are" + "only affected by surfaces with alpha transparency equal to" + "or higher than this threshold"); + RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); } /* layer options */ |