diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-06 17:33:59 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-06 17:33:59 +0300 |
commit | 837383ac78da601a8e6bd909987169993e44f75a (patch) | |
tree | 000b7206708ec40423446b9ca6067b1b078a9962 /intern/cycles | |
parent | a950af8e24dd22e93bbf13a7931c175d0037df66 (diff) |
Cycles: Cleanup, indendation
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/kernel_montecarlo.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/intern/cycles/kernel/kernel_montecarlo.h b/intern/cycles/kernel/kernel_montecarlo.h index af7b727c1ba..9995490505f 100644 --- a/intern/cycles/kernel/kernel_montecarlo.h +++ b/intern/cycles/kernel/kernel_montecarlo.h @@ -67,8 +67,8 @@ ccl_device_inline void sample_cos_hemisphere(const float3 N, /* sample direction uniformly distributed in hemisphere */ ccl_device_inline void sample_uniform_hemisphere(const float3 N, - float randu, float randv, - float3 *omega_in, float *pdf) + float randu, float randv, + float3 *omega_in, float *pdf) { float z = randu; float r = sqrtf(max(0.0f, 1.0f - z*z)); @@ -84,8 +84,8 @@ ccl_device_inline void sample_uniform_hemisphere(const float3 N, /* sample direction uniformly distributed in cone */ ccl_device_inline void sample_uniform_cone(const float3 N, float angle, - float randu, float randv, - float3 *omega_in, float *pdf) + float randu, float randv, + float3 *omega_in, float *pdf) { float z = cosf(angle*randu); float r = sqrtf(max(0.0f, 1.0f - z*z)); @@ -187,4 +187,3 @@ ccl_device float2 regular_polygon_sample(float corners, float rotation, float u, CCL_NAMESPACE_END #endif /* __KERNEL_MONTECARLO_CL__ */ - |