Cycles / OSL:

* Rename fresnel_dielectric() to fresnel_dielectric_cos() to match SVM, easier when searching code. 
* Also remove an old code comment in bsdf_reflection.h from Cycles branch days.
This commit is contained in:
Thomas Dinges
2013-05-26 17:10:22 +00:00
parent d3f9fb677b
commit 2efe0f6733
5 changed files with 9 additions and 7 deletions

View File

@@ -14,11 +14,11 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
float fresnel_dielectric(vector Incoming, normal Normal, float eta)
float fresnel_dielectric_cos(float cosi, float eta)
{
/* compute fresnel reflectance without explicitly computing
* the refracted direction */
float c = fabs(dot(Incoming, Normal));
float c = fabs(cosi);
float g = eta * eta - 1 + c * c;
float result;