Cleanup: comments (long lines) in cycles

This commit is contained in:
2019-05-01 21:14:11 +10:00
parent 177a0ca131
commit c47d669f24
72 changed files with 504 additions and 402 deletions

View File

@@ -18,7 +18,8 @@ CCL_NAMESPACE_BEGIN
#if defined(__BRANCHED_PATH__) || defined(__SUBSURFACE__) || defined(__SHADOW_TRICKS__) || \
defined(__BAKING__)
/* branched path tracing: connect path directly to position on one or more lights and add it to L */
/* branched path tracing: connect path directly to position on one or more lights and add it to L
*/
ccl_device_noinline void kernel_branched_path_surface_connect_light(
KernelGlobals *kg,
ShaderData *sd,
@@ -62,8 +63,10 @@ ccl_device_noinline void kernel_branched_path_surface_connect_light(
LightSample ls;
if (lamp_light_sample(kg, i, light_u, light_v, sd->P, &ls)) {
/* The sampling probability returned by lamp_light_sample assumes that all lights were sampled.
* However, this code only samples lamps, so if the scene also had mesh lights, the real probability is twice as high. */
/* The sampling probability returned by lamp_light_sample assumes that all lights were
* sampled.
* However, this code only samples lamps, so if the scene also had mesh lights, the real
* probability is twice as high. */
if (kernel_data.integrator.pdf_triangles != 0.0f)
ls.pdf *= 2.0f;
@@ -109,7 +112,8 @@ ccl_device_noinline void kernel_branched_path_surface_connect_light(
LightSample ls;
if (light_sample(kg, light_u, light_v, sd->time, sd->P, state->bounce, &ls)) {
/* Same as above, probability needs to be corrected since the sampling was forced to select a mesh light. */
/* Same as above, probability needs to be corrected since the sampling was forced to
* select a mesh light. */
if (kernel_data.integrator.num_all_lights)
ls.pdf *= 2.0f;