From a41648c1dc58fcfdb149bf6839ae237d1dadc704 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 6 Feb 2014 15:18:34 +0100 Subject: 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. --- source/blender/makesdna/DNA_scene_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 177b687802d..8c4026e8b67 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -187,7 +187,7 @@ typedef struct SceneRenderLayer { int pass_xor; int samples; - int pad; + float pass_alpha_threshold; struct FreestyleConfig freestyleConfig; } SceneRenderLayer; -- cgit v1.2.3