forked from bartvdbraak/blender
Cycles: Cleanup and reference actual paper used for BSSRDF sampling
This commit is contained in:
parent
6bbe59fab1
commit
e42852a339
@ -83,8 +83,8 @@ ccl_device void bssrdf_gaussian_sample(ShaderClosure *sc, float xi, float *r, fl
|
|||||||
const float r_squared = -2.0f*v*logf(1.0f - xi*area_truncated);
|
const float r_squared = -2.0f*v*logf(1.0f - xi*area_truncated);
|
||||||
*r = sqrtf(r_squared);
|
*r = sqrtf(r_squared);
|
||||||
|
|
||||||
/* h^2 + r^2 = Rm^2 */
|
/* h^2 + r^2 = Rm^2 */
|
||||||
*h = sqrtf(Rm*Rm - r_squared);
|
*h = sqrtf(Rm*Rm - r_squared);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Planar Cubic BSSRDF falloff
|
/* Planar Cubic BSSRDF falloff
|
||||||
|
@ -16,7 +16,12 @@
|
|||||||
|
|
||||||
CCL_NAMESPACE_BEGIN
|
CCL_NAMESPACE_BEGIN
|
||||||
|
|
||||||
/* NEW BSSRDF: See "BSSRDF Importance Sampling", SIGGRAPH 2013 */
|
/* New BSSRDF using disk based sampling.
|
||||||
|
*
|
||||||
|
* BSSRDF Importance Sampling, SIGGRAPH 2013
|
||||||
|
* http://library.imageworks.com/pdfs/imageworks-library-BSSRDF-sampling.pdf
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
/* TODO:
|
/* TODO:
|
||||||
* - test using power heuristic for combing bssrdfs
|
* - test using power heuristic for combing bssrdfs
|
||||||
|
Loading…
Reference in New Issue
Block a user