Cycles: add Transparent Depth output to Light Path node.
This can for example be useful if you want to manually terminate the path at some point and use a color other than black. Reviewed By: brecht Differential Revision: https://developer.blender.org/D454
This commit is contained in:

committed by
Brecht Van Lommel

parent
f8cd3d974d
commit
7765b73f6d
@@ -95,7 +95,7 @@ ccl_device_inline bool shadow_blocked(KernelGlobals *kg, PathState *state, Ray *
|
||||
|
||||
/* setup shader data at surface */
|
||||
ShaderData sd;
|
||||
shader_setup_from_ray(kg, &sd, &isect, ray, state->bounce+1);
|
||||
shader_setup_from_ray(kg, &sd, &isect, ray, ps.bounce+1, ps.transparent_bounce);
|
||||
|
||||
/* attenuation from transparent surface */
|
||||
if(!(sd.flag & SD_HAS_ONLY_VOLUME)) {
|
||||
|
Reference in New Issue
Block a user