diff options
author | Dalai Felinto <dalai@blender.org> | 2021-09-27 13:43:42 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2021-09-27 13:43:54 +0300 |
commit | c618075541ded922ead69770ed4acf49106b0ead (patch) | |
tree | ab699b68ad6dde6a793351a0b47f369eb0aae91f /intern/cycles/kernel/kernel_jitter.h | |
parent | a13b9d20b55539605d31c7a77a07a63f96ff3565 (diff) |
Cleanup: make format
Diffstat (limited to 'intern/cycles/kernel/kernel_jitter.h')
-rw-r--r-- | intern/cycles/kernel/kernel_jitter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_jitter.h b/intern/cycles/kernel/kernel_jitter.h index ab38895da54..1beaf3cc2b2 100644 --- a/intern/cycles/kernel/kernel_jitter.h +++ b/intern/cycles/kernel/kernel_jitter.h @@ -91,7 +91,7 @@ ccl_device float pmj_sample_1D(const KernelGlobals *kg, uint sample, uint rng_ha const uint sample_set = s / NUM_PMJ_SAMPLES; const uint d = (dimension + sample_set); const uint dim = d % NUM_PMJ_PATTERNS; - + /* The PMJ sample sets contain a sample with (x,y) with NUM_PMJ_SAMPLES so for 1D * the x part is used for even dims and the y for odd. */ int index = 2 * ((dim >> 1) * NUM_PMJ_SAMPLES + (s % NUM_PMJ_SAMPLES)) + (dim & 1); @@ -139,7 +139,7 @@ ccl_device void pmj_sample_2D( float fx = kernel_tex_fetch(__sample_pattern_lut, index); float fy = kernel_tex_fetch(__sample_pattern_lut, index + 1); - + #ifndef _NO_CRANLEY_PATTERSON_ROTATION_ /* Use Cranley-Patterson rotation to displace the sample pattern. */ # ifdef _SIMPLE_HASH_ |