Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-07-10 15:55:56 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-07-10 17:04:03 +0400
commit49c73f2f228d736e1f63b3ef8ea79ccc4ed9a763 (patch)
tree1241e5acd01ed2df9da3d6c85d87737156e9f0d0
parent5e216a6aa9bb7ea6c643d5b873cfae871d434925 (diff)
Cycles: Add link to a paper used for Beckmann table calculation
This is for those who'll be reading code and trying to improve it.
-rw-r--r--intern/cycles/render/shader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/shader.cpp b/intern/cycles/render/shader.cpp
index 351efcac7a8..927918689f1 100644
--- a/intern/cycles/render/shader.cpp
+++ b/intern/cycles/render/shader.cpp
@@ -45,6 +45,11 @@ static float beckmann_table_slope_max()
return 6.0;
}
+/* Paper used: Importance Sampling Microfacet-Based BSDFs with the
+ * Distribution of Visible Normals. Supplemental Material 2/2.
+ *
+ * http://hal.inria.fr/docs/01/00/66/20/ANNEX/supplemental2.pdf
+ */
static void beckmann_table_rows(float *table, int row_from, int row_to)
{
/* allocate temporary data */