diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-05 19:33:51 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-14 20:37:34 +0400 |
commit | 2bf591762ad9817b0145acd9645041a495986370 (patch) | |
tree | 1a91a48c9574b8548a22f2bb092c1fa3cbe0f5e9 /intern/cycles/render/integrator.cpp | |
parent | 42946c37c789b5a57c45ff2637c79d194beb33d0 (diff) |
Cycles: equi-angular sampling for homogeneous volumes
This adds an option in the Volume Sampling panel, which helps rendering lamps
inside or near volumes with less noise. It can also increase noise though and
needs improvements to support MIS and heterogeneous volumes, but since it's
useful in some cases already (especially world volumes) it's there now.
Based on the code in the old branch by Stuart, with modifications by Thomas
and Brecht.
Differential Revision: https://developer.blender.org/D291
Diffstat (limited to 'intern/cycles/render/integrator.cpp')
-rw-r--r-- | intern/cycles/render/integrator.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/integrator.cpp b/intern/cycles/render/integrator.cpp index f48e04f31e1..5b26440594a 100644 --- a/intern/cycles/render/integrator.cpp +++ b/intern/cycles/render/integrator.cpp @@ -41,6 +41,7 @@ Integrator::Integrator() transparent_probalistic = true; transparent_shadows = false; + volume_homogeneous_sampling = 0; volume_max_steps = 1024; volume_step_size = 0.1; @@ -104,6 +105,7 @@ void Integrator::device_update(Device *device, DeviceScene *dscene, Scene *scene kintegrator->transparent_shadows = transparent_shadows; + kintegrator->volume_homogeneous_sampling = volume_homogeneous_sampling; kintegrator->volume_max_steps = volume_max_steps; kintegrator->volume_step_size = volume_step_size; @@ -176,6 +178,7 @@ bool Integrator::modified(const Integrator& integrator) transparent_max_bounce == integrator.transparent_max_bounce && transparent_probalistic == integrator.transparent_probalistic && transparent_shadows == integrator.transparent_shadows && + volume_homogeneous_sampling == integrator.volume_homogeneous_sampling && volume_max_steps == integrator.volume_max_steps && volume_step_size == integrator.volume_step_size && no_caustics == integrator.no_caustics && |