Update to the latest version of sobol_burley.

This commit is contained in:
Nathan Vegdahl 2021-05-14 11:30:48 -07:00
parent 63d661f8ce
commit 89fc80b99b
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -609,9 +609,9 @@ checksum = "1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8"
[[package]] [[package]]
name = "sobol_burley" name = "sobol_burley"
version = "0.2.0" version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9d3ea39927d337a987e2334d9ff049617d2d132d64e3ce3cd6fb6e4aa00a864" checksum = "26e3528b09b1f1b1e152342a4462d1e80d568dc5623a0772252a6e584a53d550"
[[package]] [[package]]
name = "spectral_upsampling" name = "spectral_upsampling"

View File

@ -30,7 +30,7 @@ nom = "5"
num_cpus = "1.8" num_cpus = "1.8"
openexr = "0.7" openexr = "0.7"
kioku = "0.3" kioku = "0.3"
sobol_burley = "0.2" sobol_burley = "0.3"
png_encode_mini = "0.1.2" png_encode_mini = "0.1.2"
rustc-serialize = "0.3" rustc-serialize = "0.3"
scoped_threadpool = "0.1" scoped_threadpool = "0.1"

View File

@ -706,7 +706,7 @@ fn get_sample_4d(
let seed = pixel_co.0 ^ (pixel_co.1 << 16) ^ seed.wrapping_mul(0x736caf6f); let seed = pixel_co.0 ^ (pixel_co.1 << 16) ^ seed.wrapping_mul(0x736caf6f);
match dimension_set { match dimension_set {
ds if ds < sobol_burley::NUM_DIMENSION_SETS as u32 => { ds if ds < sobol_burley::NUM_DIMENSION_SETS_4D as u32 => {
// Sobol sampling. // Sobol sampling.
let n4 = sobol_burley::sample_4d(i, ds, seed); let n4 = sobol_burley::sample_4d(i, ds, seed);
(n4[0], n4[1], n4[2], n4[3]) (n4[0], n4[1], n4[2], n4[3])