Cycles: change AO bounces approximation to do more glossy and transmission.

Rather than treating all ray types equally, we now always render 1 glossy
bounce and unlimited transmission bounces. This makes it possible to get
good looking results with low AO bounces settings, making it useful to
speed up interior renders for example.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2818
This commit is contained in:
Mathieu Menuet
2017-09-12 15:13:55 +02:00
committed by Brecht Van Lommel
parent d2202117fe
commit 659ba012b0
4 changed files with 31 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ ccl_device void kernel_indirect_background(KernelGlobals *kg)
if(ray_index != QUEUE_EMPTY_SLOT) {
if(IS_STATE(ray_state, ray_index, RAY_ACTIVE)) {
ccl_global PathState *state = &kernel_split_state.path_state[ray_index];
if(state->bounce > kernel_data.integrator.ao_bounces) {
if(path_state_ao_bounce(kg, state)) {
kernel_split_path_end(kg, ray_index);
}
}