diff options
Diffstat (limited to 'intern/cycles/kernel/integrator/integrator_shade_volume.h')
-rw-r--r-- | intern/cycles/kernel/integrator/integrator_shade_volume.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/kernel/integrator/integrator_shade_volume.h b/intern/cycles/kernel/integrator/integrator_shade_volume.h index 4a864b1e6ce..d44890f800e 100644 --- a/intern/cycles/kernel/integrator/integrator_shade_volume.h +++ b/intern/cycles/kernel/integrator/integrator_shade_volume.h @@ -30,7 +30,7 @@ CCL_NAMESPACE_BEGIN #ifdef __VOLUME__ -/* Events for probalistic scattering */ +/* Events for probabilistic scattering. */ typedef enum VolumeIntegrateEvent { VOLUME_PATH_SCATTERED = 0, @@ -228,8 +228,8 @@ ccl_device void volume_shadow_heterogeneous(INTEGRATOR_STATE_ARGS, /* compute attenuation over segment */ sd->P = new_P; if (shadow_volume_shader_sample(INTEGRATOR_STATE_PASS, sd, &sigma_t)) { - /* Compute expf() only for every Nth step, to save some calculations - * because exp(a)*exp(b) = exp(a+b), also do a quick VOLUME_THROUGHPUT_EPSILON + /* Compute `expf()` only for every Nth step, to save some calculations + * because `exp(a)*exp(b) = exp(a+b)`, also do a quick #VOLUME_THROUGHPUT_EPSILON * check then. */ sum += (-sigma_t * dt); if ((i & 0x07) == 0) { /* ToDo: Other interval? */ @@ -648,7 +648,7 @@ ccl_device_forceinline void volume_integrate_heterogeneous( } } - /* Write accumulated emisison. */ + /* Write accumulated emission. */ if (!is_zero(accum_emission)) { kernel_accum_emission( INTEGRATOR_STATE_PASS, result.indirect_throughput, accum_emission, render_buffer); |