diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-17 17:22:42 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-17 17:22:42 +0400 |
commit | edde749850b4b660dec570fdb6367d1d51c3cb28 (patch) | |
tree | 014c4eb37ad884203f2be2fba6d21a48e7b9de73 /intern/cycles/kernel/kernel_accumulate.h | |
parent | 29b546fe7f9ee4f03f785c7f985a9a15493a0afc (diff) |
Fix #36741: cycles AO pass giving values > 1.0 with transparency.
Diffstat (limited to 'intern/cycles/kernel/kernel_accumulate.h')
-rw-r--r-- | intern/cycles/kernel/kernel_accumulate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h index 422de1f3df8..d7531be0d8a 100644 --- a/intern/cycles/kernel/kernel_accumulate.h +++ b/intern/cycles/kernel/kernel_accumulate.h @@ -210,14 +210,14 @@ __device_inline void path_radiance_accum_emission(PathRadiance *L, float3 throug #endif } -__device_inline void path_radiance_accum_ao(PathRadiance *L, float3 throughput, float3 bsdf, float3 ao, int bounce) +__device_inline void path_radiance_accum_ao(PathRadiance *L, float3 throughput, float3 alpha, float3 bsdf, float3 ao, int bounce) { #ifdef __PASSES__ if(L->use_light_pass) { if(bounce == 0) { /* directly visible lighting */ L->direct_diffuse += throughput*bsdf*ao; - L->ao += throughput*ao; + L->ao += alpha*throughput*ao; } else { /* indirectly visible lighting after BSDF bounce */ |