summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-15 11:33:32 -0500
committerpommicket <pommicket@gmail.com>2022-12-15 11:33:32 -0500
commit4f48f02f91f2134b4452729dd96524ea1814efb2 (patch)
tree2af6a435a33119bb2169cdec48da7a71c6bf0437 /src/main.rs
parente45cbe4744c76a160e012a4d9bcf8d46340821d8 (diff)
various fixes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main.rs b/src/main.rs
index a9e9909..79b9d1f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,5 +1,7 @@
/*
@TODO:
+- auto-select level set by sampling a bunch of points
+- Params instead of depth
- fullscreen key
- mathematical analysis
- options for:
@@ -65,16 +67,7 @@ impl View {
}
fn try_main() -> Result<(), String> {
-// use sdf::{Constant, R3ToR, R3ToR3, RToR};
-// let _test = Constant::gen_thread_random();
-// println!("{_test:?}");
-//
-// let funciton = R3ToR::compose(
-// R3ToR3::InfiniteMirrors(Constant::from(2.0)),
-// R3ToR::sphere_f32(0.2),
-// RToR::Identity,
-// );
- let my_sdf = sdf::Sdf::gen_thread_random_max_depth(6);
+ let my_sdf = sdf::Sdf::gen_thread_random_max_depth(7);
println!("{my_sdf:?}");
let mut window = win::Window::new("AutoSDF", 1280, 720, true)