Cycles: Cleanup, style
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 5 Sep 2017 10:42:45 +0000 (12:42 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 5 Sep 2017 10:43:02 +0000 (12:43 +0200)
intern/cycles/kernel/bvh/bvh_nodes.h
intern/cycles/kernel/kernel_shadow.h
intern/cycles/kernel/split/kernel_shadow_blocked_dl.h

index 74a9ebf14e482c4d45db954d9793d554fc352c82..5f1dd434a440da93c404e5c9cdc59975a0d535c7 100644 (file)
@@ -615,7 +615,7 @@ ccl_device_forceinline int bvh_node_intersect_robust(KernelGlobals *kg,
                                                      const float3& P,
                                                      const float3& dir,
                                                      const ssef& isect_near,
-                                                      const ssef& isect_far,
+                                                     const ssef& isect_far,
                                                      const ssef& tsplat,
                                                      const ssef Psplat[3],
                                                      const ssef idirsplat[3],
index b91aba6e03c3148c365c9763b0954eb8cff17c60..bb6bdc7fbd0860d9ab90cf22a235fc76f0ffd112 100644 (file)
@@ -204,7 +204,7 @@ ccl_device bool shadow_blocked_transparent_all_loop(KernelGlobals *kg,
        }
 #    ifdef __VOLUME__
        if(!blocked && state->volume_stack[0].shader != SHADER_NONE) {
-               /* Apply attenuation from current volume shader/ */
+               /* Apply attenuation from current volume shader. */
                kernel_volume_shadow(kg, shadow_sd, state, ray, shadow);
        }
 #    endif
index 50c9acec4ee5e8c07af9609b94c600ab02f4f1dd..19bfee6d039378c956a985532f7e52ba5c584277 100644 (file)
@@ -89,10 +89,10 @@ ccl_device void kernel_shadow_blocked_dl(KernelGlobals *kg)
                float3 shadow;
 
                if(!shadow_blocked(kg,
-                                      emission_sd,
-                                      state,
-                                      &ray,
-                                      &shadow))
+                                  emission_sd,
+                                  state,
+                                  &ray,
+                                  &shadow))
                {
                        /* accumulate */
                        path_radiance_accum_light(L, state, throughput, &L_light, shadow, 1.0f, is_lamp);