Blender Git Commit Log

Git Commits -> Revision 3d49b32

Revision 3d49b32 by Thomas Dinges (soc-2013-dingto)
September 9, 2013, 23:01 (GMT)
Volume:
Cleanup and refactor of closure code in volume.h.
* Remove unused code (the brute force henyey-greenstein eval and sample function and double peaked functions). Maybe we need something here in the future, but the current code just became too confusing.

* Remove the CLOSURE_BSDF_DOUBLE_PEAKED_HENYEY_GREENSTEIN_ID, instead use CLOSURE_VOLUME_ISOTROPIC_ID now.
The final naming of the node/closure is still unsure, but better to use one consistent naming scheme. When the "g" parameter is 0, the closure is Isotropic anyway, so maybe it's ok, we'll see.

* Now we use 2 counterparts to bsdf_eval() and bsdf_sample():
volume_eval_phase() and volume_sample()

ToDo:
* Reflect these changes for OSL.

Commit Details:

Full Hash: 3d49b320f3c194b89a08286e1b2bdf8b269635db
SVN Revision: 59974
Parent Commit: 145931d
Lines Changed: +84, -204

8 Modified Paths:

/intern/cycles/kernel/closure/bsdf.h (+2, -2) (Diff)
/intern/cycles/kernel/closure/volume.h (+64, -176) (Diff)
/intern/cycles/kernel/kernel_shader.h (+3, -3) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+6, -6) (Diff)
/intern/cycles/kernel/osl/osl_closures.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+2, -3) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -4) (Diff)
/intern/cycles/render/nodes.cpp (+1, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021