Blender Git Loki

Git Commits -> Revision 54729df

Revision 54729df by Brecht Van Lommel (master)
December 19, 2012, 21:17 (GMT)
Cycles OSL: diffuse_toon and specular_toon closures. These are toon shaders with
a size parameter between 0.0 and 1.0 that gives a angle of reflection between
0° and 90°, and a smooth parameter that gives and angle over which a smooth
transition from full to no reflection happens.

These work with global illumination and do importance sampling of the area within
the angle. Note that unlike most other BSDF's these are not energy conserving in
general, in particular if their weight is 1.0 and size > 2/3 (or 60°) they will
add more energy in each bounce.

Diffuse: http://www.pasteall.org/pic/show.php?id=42119
Specular: http://www.pasteall.org/pic/show.php?id=42120

Commit Details:

Full Hash: 54729df02096da1f3404d4d4891f30752bf90778
SVN Revision: 53189
Parent Commit: 8d4c61a
Lines Changed: +489, -73

2 Added Paths:

/intern/cycles/kernel/closure/bsdf_toon.h (+206, -0) (View)
/intern/cycles/kernel/osl/bsdf_toon.cpp (+179, -0) (View)

9 Modified Paths:

/intern/cycles/kernel/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/kernel_montecarlo.h (+16, -0) (Diff)
/intern/cycles/kernel/osl/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+6, -3) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+6, -2) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+3, -1) (Diff)
/intern/cycles/kernel/svm/svm_math.h (+0, -67) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -0) (Diff)
/intern/cycles/util/util_math.h (+69, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021