summaryrefslogtreecommitdiff
path: root/src/sdf.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-17 19:29:26 -0500
committerpommicket <pommicket@gmail.com>2022-12-17 19:29:26 -0500
commitf5521615ad2e18b1ab96429bd749570fa01c23c8 (patch)
treec5dc2c8fbc18b0a007910308c4f4c3338c7d66e4 /src/sdf.rs
parentb25afa914916259f55b734b5119c70ce7fc90064 (diff)
it wasn't working but now it is
Diffstat (limited to 'src/sdf.rs')
-rw-r--r--src/sdf.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdf.rs b/src/sdf.rs
index 8b15874..6f2dfa6 100644
--- a/src/sdf.rs
+++ b/src/sdf.rs
@@ -545,7 +545,7 @@ impl R3ToR3 {
pub struct SceneConfig {
pub sdf_max_depth: isize,
- pub color_max_depth: isize
+ pub color_max_depth: isize,
}
#[derive(Serialize, Deserialize)]
@@ -578,7 +578,7 @@ impl Scene {
let bytes = decode_hex(s)?;
serde_cbor::from_reader(&bytes[..]).ok()?
}
-
+
pub fn good_random(rng: &mut impl Rng, config: &SceneConfig) -> Self {
let sdf = R3ToR::good_random(rng, config.sdf_max_depth);
let color_function = R3ToR3::good_random(rng, config.color_max_depth);