Blender Git Commit Log

Git Commits -> Revision 83e73a2

Revision 83e73a2 by Thomas Dinges (master)
January 6, 2016, 22:43 (GMT)
Cycles: Refactor how we pass bounce info to light path node.

This commit changes the way how we pass bounce information to the Light
Path node. Instead of manualy copying the bounces into ShaderData, we now
directly pass PathState. This reduces the arguments that we need to pass
around and also makes it easier to extend the feature.

This commit also exposes the Transmission Bounce Depth to the Light Path
node. It works similar to the Transparent Depth Output: Replace a
Transmission lightpath after X bounces with another shader, e.g a Diffuse
one. This can be used to avoid black surfaces, due to low amount of max
bounces.

Reviewed by Sergey and Brecht, thanks for some hlp with this.

I tested compilation and usage on CPU (SVM and OSL), CUDA, OpenCL Split
and Mega kernel. Hopefully this covers all devices. :)

Commit Details:

Full Hash: 83e73a2100688655f0eb2df5cbfac2ca1f051fff
Parent Commit: be28706
Lines Changed: +197, -204

29 Modified Paths:

/intern/cycles/device/device_opencl.cpp (+1, -21) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_data_init.cl (+0, -10) (Diff)
/intern/cycles/kernel/kernel_bake.h (+23, -23) (Diff)
/intern/cycles/kernel/kernel_emission.h (+23, -18) (Diff)
/intern/cycles/kernel/kernel_path.h (+8, -10) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+4, -3) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+10, -0) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_path_volume.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_shader.h (+17, -24) (Diff)
/intern/cycles/kernel/kernel_shaderdata_vars.h (+1, -6) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+10, -4) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+6, -4) (Diff)
/intern/cycles/kernel/kernel_volume.h (+8, -8) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+12, -7) (Diff)
/intern/cycles/kernel/osl/osl_services.h (+1, -0) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+12, -8) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+3, -3) (Diff)
/intern/cycles/kernel/shaders/node_light_path.osl (+6, -1) (Diff)
/intern/cycles/kernel/split/kernel_data_init.h (+0, -12) (Diff)
/intern/cycles/kernel/split/kernel_direct_lighting.h (+2, -2) (Diff)
/intern/cycles/kernel/split/kernel_lamp_emission.h (+21, -21) (Diff)
/intern/cycles/kernel/split/kernel_shader_eval.h (+2, -4) (Diff)
/intern/cycles/kernel/svm/svm.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_light_path.h (+4, -3) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -1) (Diff)
/intern/cycles/render/nodes.cpp (+7, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+3, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_light_path.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021