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/kernel_path.h')
-rw-r--r--intern/cycles/kernel/kernel_path.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h
index c332d5ad3ec..5681510fc25 100644
--- a/intern/cycles/kernel/kernel_path.h
+++ b/intern/cycles/kernel/kernel_path.h
@@ -267,7 +267,7 @@ ccl_device_forceinline bool kernel_path_shader_apply(KernelGlobals *kg,
if (state->flag & PATH_RAY_TRANSPARENT_BACKGROUND) {
state->flag |= (PATH_RAY_SHADOW_CATCHER | PATH_RAY_STORE_SHADOW_INFO);
- float3 bg = make_float3(0.0f, 0.0f, 0.0f);
+ float3 bg = zero_float3();
if (!kernel_data.background.transparent) {
bg = indirect_background(kg, emission_sd, state, NULL, ray);
}
@@ -288,7 +288,7 @@ ccl_device_forceinline bool kernel_path_shader_apply(KernelGlobals *kg,
if (kernel_data.background.transparent) {
L->transparent += average(holdout_weight * throughput);
}
- if (isequal_float3(holdout_weight, make_float3(1.0f, 1.0f, 1.0f))) {
+ if (isequal_float3(holdout_weight, one_float3())) {
return false;
}
}
@@ -460,7 +460,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
# ifdef __AO__
/* ambient occlusion */
if (kernel_data.integrator.use_ambient_occlusion) {
- kernel_path_ao(kg, sd, emission_sd, L, state, throughput, make_float3(0.0f, 0.0f, 0.0f));
+ kernel_path_ao(kg, sd, emission_sd, L, state, throughput, zero_float3());
}
# endif /* __AO__ */
@@ -670,7 +670,7 @@ ccl_device void kernel_path_trace(
}
/* Initialize state. */
- float3 throughput = make_float3(1.0f, 1.0f, 1.0f);
+ float3 throughput = one_float3();
PathRadiance L;
path_radiance_init(kg, &L);