diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-17 21:21:41 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-17 21:21:53 +0300 |
commit | 1aa93dd9fd84b74945ab6a3644764393557e30b9 (patch) | |
tree | 0e6e9c3ac7dcc04cf2615adb55e05d5a0eafb51d /intern/cycles/kernel/kernel_light.h | |
parent | 21a2b73a1e0eff0f48fe93161779bd71f8f141f7 (diff) |
Cycles: Cleanup after recent changes
Diffstat (limited to 'intern/cycles/kernel/kernel_light.h')
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index afc596526af..0be8a9eab99 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -175,10 +175,10 @@ ccl_device float3 sphere_light_sample(float3 P, float3 center, float radius, flo * https://www.solidangle.com/research/egsr2013_spherical_rectangle.pdf */ ccl_device float area_light_sample(float3 P, - float3 *light_p, - float3 axisu, float3 axisv, - float randu, float randv, - bool return_coord) + float3 *light_p, + float3 axisu, float3 axisv, + float randu, float randv, + bool sample_coord) { /* In our name system we're using P for the center, * which is o in the paper. @@ -225,7 +225,7 @@ ccl_device float area_light_sample(float3 P, /* Compute solid angle from internal angles. */ float S = g0 + g1 - k; - if(return_coord) { + if(sample_coord) { /* Compute cu. */ float au = randu * S + k; float fu = (cosf(au) * b0 - b1) / sinf(au); |