Code cleanup: store branch factor in PathState.
[blender.git] / intern / cycles / kernel / kernel_random.h
index 221d92f5de1b897d6265b5be129226c20c387917..b35ed3bd27965168c789cc794b9833715c83db5a 100644 (file)
@@ -296,17 +296,6 @@ ccl_device_inline float path_branched_rng_light_termination(
        return 0.0f;
 }
 
-ccl_device_inline void path_state_branch(ccl_addr_space PathState *state,
-                                         int branch,
-                                         int num_branches)
-{
-       /* path is splitting into a branch, adjust so that each branch
-        * still gets a unique sample from the same sequence */
-       state->rng_offset += PRNG_BOUNCE_NUM;
-       state->sample = state->sample*num_branches + branch;
-       state->num_samples = state->num_samples*num_branches;
-}
-
 ccl_device_inline uint lcg_state_init(PathState *state,
                                       uint scramble)
 {