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:
Diffstat (limited to 'intern/cycles/kernel/split/kernel_lamp_emission.h')
-rw-r--r--intern/cycles/kernel/split/kernel_lamp_emission.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/intern/cycles/kernel/split/kernel_lamp_emission.h b/intern/cycles/kernel/split/kernel_lamp_emission.h
index e5fdb637a50..a8e4b0a06c8 100644
--- a/intern/cycles/kernel/split/kernel_lamp_emission.h
+++ b/intern/cycles/kernel/split/kernel_lamp_emission.h
@@ -56,7 +56,9 @@ ccl_device void kernel_lamp_emission(
int parallel_samples, /* Number of samples to be processed in parallel */
int ray_index)
{
- if(IS_STATE(ray_state, ray_index, RAY_ACTIVE) || IS_STATE(ray_state, ray_index, RAY_HIT_BACKGROUND)) {
+ if(IS_STATE(ray_state, ray_index, RAY_ACTIVE) ||
+ IS_STATE(ray_state, ray_index, RAY_HIT_BACKGROUND))
+ {
KernelGlobals *kg = (KernelGlobals *)globals;
ShaderData *sd = (ShaderData *)shader_data;
PathRadiance *L = &PathRadiance_coop[ray_index];
@@ -84,7 +86,8 @@ ccl_device void kernel_lamp_emission(
path_radiance_accum_emission(L, throughput, emission, state.bounce);
}
}
-#endif
+#endif /* __LAMP_MIS__ */
+
/* __VOLUME__ feature is disabled */
#if 0
#ifdef __VOLUME__
@@ -149,7 +152,7 @@ ccl_device void kernel_lamp_emission(
}
}
else
-#endif
+#endif /* __VOLUME_DECOUPLED__ */
{
/* integrate along volume segment with distance sampling */
ShaderData volume_sd;
@@ -167,10 +170,10 @@ ccl_device void kernel_lamp_emission(
else
break;
}
-#endif
+#endif /* __VOLUME_SCATTER__ */
}
}
-#endif
+#endif /* __VOLUME__ */
#endif
}
}