Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-08-20 23:53:52 +0400
committerThomas Dinges <blender@dingto.org>2014-08-21 00:59:08 +0400
commit075f6eff746b9fc6b1eabfccb213f02decd62fe8 (patch)
tree996fee3ad9af8718cb62f00eab7ff7d370b93d74 /intern/cycles/kernel/kernel_volume.h
parentc3e59379c08558272d0fa8a9e88c6f2e81ded28d (diff)
Cycles: Further tweak for Decoupled Ray Marching
Avoid some if checks when probalistic_scatter is false. Differential Revision: https://developer.blender.org/D743
Diffstat (limited to 'intern/cycles/kernel/kernel_volume.h')
-rw-r--r--intern/cycles/kernel/kernel_volume.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_volume.h b/intern/cycles/kernel/kernel_volume.h
index 8004013552c..49e5f5099d1 100644
--- a/intern/cycles/kernel/kernel_volume.h
+++ b/intern/cycles/kernel/kernel_volume.h
@@ -732,7 +732,9 @@ ccl_device void kernel_volume_decoupled_free(KernelGlobals *kg, VolumeSegment *s
* scattering, they always scatter if there is any non-zero scattering
* coefficient.
*
- * these also do not do emission or modify throughput. */
+ * these also do not do emission or modify throughput.
+ *
+ * function is expected to return VOLUME_PATH_SCATTERED when probalistic_scatter is false */
ccl_device VolumeIntegrateResult kernel_volume_decoupled_scatter(
KernelGlobals *kg, PathState *state, Ray *ray, ShaderData *sd,
float3 *throughput, float rphase, float rscatter,