blender/intern/cycles/kernel/osl
Thomas Dinges 83e73a2100 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. :)
2016-01-06 23:43:29 +01:00
..
background.cpp Cycles: Support building with latest OSL-1.7dev 2015-09-23 12:27:02 +05:00
bsdf_diffuse_ramp.cpp Cycles: Support building with latest OSL-1.7dev 2015-09-23 12:27:02 +05:00
bsdf_phong_ramp.cpp Cycles: Support building with latest OSL-1.7dev 2015-09-23 12:27:02 +05:00
CMakeLists.txt Cycles / Toon BSDF: 2013-05-23 17:45:20 +00:00
emissive.cpp Cycles: Support building with latest OSL-1.7dev 2015-09-23 12:27:02 +05:00
osl_bssrdf.cpp Cycles: Support building with latest OSL-1.7dev 2015-09-23 12:27:02 +05:00
osl_bssrdf.h Cycles OSL: refactoring to remove all dependencies on builtin OSL closures. 2013-11-29 04:01:07 +01:00
osl_closures.cpp Cleanup for Cycles hair shader ifdefs. 2015-02-18 15:57:39 +01:00
osl_closures.h Fix various compiler warnings. 2015-10-10 17:35:30 +02:00
osl_globals.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
osl_services.cpp Cycles: Refactor how we pass bounce info to light path node. 2016-01-06 23:43:29 +01:00
osl_services.h Cycles: Refactor how we pass bounce info to light path node. 2016-01-06 23:43:29 +01:00
osl_shader.cpp Cycles: Refactor how we pass bounce info to light path node. 2016-01-06 23:43:29 +01:00
osl_shader.h Cycles: Refactor how we pass bounce info to light path node. 2016-01-06 23:43:29 +01:00