Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_random.h
| Context not available. | |||||
| * See T38710, T50116. | * See T38710, T50116. | ||||
| */ | */ | ||||
| uint tmp_rng = cmj_hash_simple(dimension, rng_hash); | uint tmp_rng = cmj_hash_simple(dimension, rng_hash); | ||||
| shift = tmp_rng * (1.0f / (float)0xFFFFFFFF); | shift = tmp_rng * (kernel_data.integrator.scrambling_distance / (float)0xFFFFFFFF); | ||||
| return r + shift - floorf(r + shift); | return r + shift - floorf(r + shift); | ||||
| #endif | #endif | ||||
| Context not available. | |||||