[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44359] trunk/blender/intern/cycles/kernel /svm/bsdf_oren_nayar.h: Cycles:

Thomas Dinges blender at dingto.org
Thu Feb 23 10:11:26 CET 2012


Revision: 44359
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44359
Author:   dingto
Date:     2012-02-23 09:11:17 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
Cycles:
* Remove obsolete comments in the Oren Nayar code. 

Modified Paths:
--------------
    trunk/blender/intern/cycles/kernel/svm/bsdf_oren_nayar.h

Modified: trunk/blender/intern/cycles/kernel/svm/bsdf_oren_nayar.h
===================================================================
--- trunk/blender/intern/cycles/kernel/svm/bsdf_oren_nayar.h	2012-02-23 08:41:13 UTC (rev 44358)
+++ trunk/blender/intern/cycles/kernel/svm/bsdf_oren_nayar.h	2012-02-23 09:11:17 UTC (rev 44359)
@@ -16,31 +16,6 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-/*
- *	An implementation of Oren-Nayar reflectance model, public domain
- *		http://www1.cs.columbia.edu/CAVE/publications/pdfs/Oren_SIGGRAPH94.pdf
- *
- *	NOTE:
- *		BSDF = A + B * cos() * sin() * tan()
- *
- *		The parameter sigma means different from original.
- *		A and B are calculated by the following formula:
- *			0 <= sigma <= 1
- *			A =     1 / ((1 + sigma / 2) * pi);
- *			B = sigma / ((1 + sigma / 2) * pi);
- *
- *		This formula is derived as following:
- *
- *		0. Normalize A-term and B-term of BSDF *individually*.
- *		   B-term is normalized at maximum point: dot(L, N) = 0.
- *			A = (1/pi) * A'
- *			B = (2/pi) * B'
- *
- *		1. Solve the following equation:
- *			A' + B' = 1
- *			B / A = sigma
- */
-
 #ifndef __BSDF_OREN_NAYAR_H__
 #define __BSDF_OREN_NAYAR_H__
 




More information about the Bf-blender-cvs mailing list