OSL Backend:
authorThomas Dinges <blender@dingto.org>
Wed, 5 Sep 2012 23:22:36 +0000 (23:22 +0000)
committerThomas Dinges <blender@dingto.org>
Wed, 5 Sep 2012 23:22:36 +0000 (23:22 +0000)
commit3f7b4916e9bcd89bb289f3b1d5749c5bcb956f6a
treea24901e5f3543a5cc07fd3ac1b5e9c97bcd3d1ef
parent36797a64a5ef548e25d2383025d9e4ae0a82f424
OSL Backend:
* Added the Phong BRDF from the inbuilt OSL shader library.

This can be used in OSL shaders only for now:
* phong(normal N, float exponent)
* phong_ramp(normal N, float exponent, color colors[8]
intern/cycles/kernel/osl/CMakeLists.txt
intern/cycles/kernel/osl/bsdf_phong.cpp [new file with mode: 0644]
intern/cycles/kernel/osl/osl_closures.cpp
intern/cycles/kernel/osl/osl_closures.h