diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-06-04 21:17:10 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-06-04 21:17:10 +0400 |
commit | 6548f7efefb2e9db25e8c6ca8b7d4ed6b9725543 (patch) | |
tree | 106465145a9e15e3e01ff6fbde850d880dbb7c2c /intern/cycles/util | |
parent | 0f1fd51c2169d45327eef4c40622551694c9dd9e (diff) |
Cycles: spot lamp support.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_math.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index fee2f10085b..cd44b7e8cda 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -162,6 +162,12 @@ __device_inline float nonzerof(float f, float eps) return f; } +__device_inline float smoothstepf(float f) +{ + float ff = f*f; + return (3.0f*ff - 2.0f*ff*f); +} + /* Float2 Vector */ #ifndef __KERNEL_OPENCL__ |